ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
For anyone having a similar problem and coming across this after 6 years, you can make gazebo look in the package directory for models using the package.xml
. In the below example, you can put your models into <your/package/directory>/models/
and use them from the world file without copying them into the default gazebo model directory (This might not have been available in 2014 when the question was asked)
<export>
<gazebo_ros gazebo_model_path="${prefix}/models"/>
<gazebo_ros gazebo_media_path="${prefix}/models"/>
</export>
Here
{prefix}
is evaluated to the package path
In the world file, now you can do this
<geometry>
<mesh><uri>model://your_mesh.dae</uri></mesh>
</geometry>
2 | No.2 Revision |
For anyone having a similar problem and coming across this after 6 years, you can make gazebo look in the package directory for models using the package.xml. In the below example, you can put your models into <your/package/directory>/models/
and use them from the world file without copying them into the default gazebo model directory (This might not have been available in 2014 when the question was asked)
<export>
<gazebo_ros gazebo_model_path="${prefix}/models"/>
<gazebo_ros gazebo_media_path="${prefix}/models"/>
</export>
Here
{prefix}
is evaluated to the package path
In the world file, now you can do this
<geometry>
<mesh><uri>model://your_mesh.dae</uri></mesh>
</geometry>