Home | Tutorials | Wiki | Issues
Ask Your Question
0

How to add custom mesh to world from a different package

asked 2014-10-20 12:06:21 -0600

athackst gravatar image

updated 2014-10-21 10:28:29 -0600

The tutorial mentions that you can add a custom mesh if it is in the same folder as the world file, but not if it is in a different folder/package. Is there a way to do this? I've tried adding the path to GAZEBO_RESOURCES_PATH, but that doesn't seem to work.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-21 10:41:46 -0600

athackst gravatar image

I found the secret sauce:

in package.xml:

<run_depend>gazebo_ros</run_depend>
...
<export>
  <gazebo_ros gazebo_media_path="${prefix}" />
</export>

then in the world file:

<geometry>
  <mesh>
    <uri>file://name_of_mesh.dae</uri>
  </mesh>
</geometry>

I had to change model:// to file:// here.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

Stats

Asked: 2014-10-20 12:06:21 -0600

Seen: 205 times

Last updated: Oct 21 '14