Ask Your Question
0

configuration for launching gazebo world and model from a package

asked 2021-03-08 08:44:42 -0500

Morteza70 gravatar image

I have a package containing worlds that have several models defined in the models directory.

what configurations (e.g. in package.xml and CMakeList.txt) should I set in order to Gazebo and ROS work properly and detects my models?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-01 01:58:03 -0500

Shravista gravatar image

updated 2021-06-01 02:18:19 -0500

Hello, I am also having the same problem. So this kind of question is already answered. check here The directory of your world files should be something like this mentioned here.

However, if your package have folder structure something like above, you could simply place these two lines of code,

<export>
<gazebo_ros gazebo_model_path="${prefix}/models"/>
<gazebo_ros gazebo_media_path="${prefix}/models"/>
</export>

then you can use in sdf files

<mesh><uri>model://your_mesh.dae</uri></mesh>

I hope this helps

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2021-03-08 08:44:42 -0500

Seen: 153 times

Last updated: Jun 01 '21