Robotics StackExchange | Archived questions

Creating multiple models in gazebo

Hi,

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?

Asked by kchledowski on 2017-07-19 05:17:28 UTC

Comments

Answers

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.

Asked by chapulina on 2017-07-19 11:02:12 UTC

Comments