Gazebo | Ignition | Community
Ask Your Question

Creating multiple models in gazebo

asked 2017-07-19 05:17:28 -0600

kchledowski gravatar image


I would like to be able to obtain many models of a room/hallway with different set ups (colors, positioning of tables, chairs, furniture, etc.) with the smallest workload.

My current idea is to model one room in gazebo, save the .xml and then write a Python script that modifies the parameters in the .xml. I was searching for a better idea on the web, but could not find one, possibly due to my shallow understanding of ROS and gazebo.

Does anyone have an idea on how may I improve my approach?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-07-19 11:02:12 -0600

chapulina gravatar image

Instead of writing a script to post-process your xml, how about generating the xml from a template?

There are numerous ways of doing this, if you're using ROS and URDF, xacro is an option. Another option is to use embedded ruby like on this SDF model. I'm sure you can also do it with python.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-07-19 05:17:28 -0600

Seen: 302 times

Last updated: Jul 19 '17