Gazebo | Ignition | Community
Ask Your Question
1

separate actor from world

asked 2020-04-15 04:00:41 -0600

Enif25 gravatar image

updated 2020-04-15 05:22:04 -0600

Hi,

i want to separate the actor from the world file. The actor is created according to this tutorial: http://gazebosim.org/tutorials?tut=ac...

I moved the <actor> in another sdf file and the launch file should spawn it with

<node> pkg="gazebo_ros" type="spawn_model" name="actor1" args="-sdf -file /path/actor.sdf -model spawn_model"/>

This is apparently not working, the world is launched by the launch file, but the actor from this node is not in the world.

How can I separate the actor?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-05-19 08:44:28 -0600

JakobThumm gravatar image

Make sure the path to the dae files in the sdf can be found. Example model.sdf:

<?xml version="1.0"?>
<sdf version="1.5">
<actor name="actor">
  <skin>
    <filename>../../src/actor_pkg/animations/my_animation.dae</filename>
  </skin>
  <animation name="animation">
    <filename>../../src/actor_pkg/animations/my_animation.dae</filename>
  </animation>
</actor>
</sdf>

Reminder: the root of <filename> is in catkin_ws/devel/lib.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-04-15 04:00:41 -0600

Seen: 163 times

Last updated: May 19