Gazebo | Ignition | Community
Ask Your Question

gazebo_media_path in Gazebo 1.8.6

asked 2013-06-28 20:47:43 -0600

In Gazebo 1.5 (the version packaged with ROS Groovy), I set gazebo_media_path in package.xml like this:

    <gazebo gazebo_media_path="${prefix}"/>

In my world file, I specified materials and meshes like this:



The materials and meshes were defined in subdirectories of my Media directory, which was in the same directory as package.xml. Gazebo rendered the world correctly.

I have now moved to Gazebo 1.8.6 and I get the following warnings and errors:

  Warning [] Unable to get Material[cerberus_gazebo/srrc_terrain] for
    Geometry[terrain::link::visual. Object will appear white
  Error [] File or path does not exist[""]
  Error [] No mesh specified

My materials and meshes are no longer found. Is gazebo_media_path no longer supported? I tried adding my package directory to GAZEBO_RESOURCE_PATH (i.e. I added the directory that contains package.xml and Media), but that had no effect.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-07-02 14:55:17 -0600

In Gazebo 1.8.6, gazebo_media_path needs to be set in package.xml like this:

    <gazebo_ros gazebo_media_path="${prefix}"/>

The differences from my original (Gazebo 1.5) package.xml are that the "gazebo" in the "run_depend" block is now "gazebo_ros", and the "gazebo" tag within the "export" block is now "gazebo_ros".

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-06-28 20:47:43 -0600

Seen: 2,686 times

Last updated: Jul 02 '13