Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephcoombe/a655b95a57e78496729beed00bb863a7 to your computer and use it in GitHub Desktop.
Save josephcoombe/a655b95a57e78496729beed00bb863a7 to your computer and use it in GitHub Desktop.
Gazebo URI Paths to Mesh Files in ROS Packages
<!--
https://stackoverflow.com/a/53759308
https://answers.gazebosim.org//question/6416/using_a_urdf_in_gazebo-package-uris-not-described/?answer=6419#post-id-6419
https://answers.ros.org/question/195402/creating-custom-gazebo-world-files-from-sdfsdaes-for-use-with-roslaunch/?answer=357489#post-id-357489
-->
<package>
<!-- The *depend tags are used to specify dependencies -->
<!-- Dependencies can be catkin packages or system dependencies -->
<buildtool_depend>catkin</buildtool_depend>
<exec_depend>gazebo_ros</exec_depend>
<!-- The export tag contains other, unspecified, tags -->
<export>
<gazebo_ros gazebo_model_path="${prefix}/world/meshes"/>
<gazebo_ros gazebo_media_path="${prefix}/world/meshes"/>
<gazebo_ros gazebo_resource_path="${prefix}/world/meshes"/>
</export>
</package>
<!--
<geometry>
<mesh>
<uri>model://gvr_bot_water_tank_terrain001.stl</uri>
<scale>0.001 0.001 0.001</scale>
</mesh>
</geometry>
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment