Gazebo resources: Tutorials | Q&A | Documentation | Blog

Method to describe walls in gazebo wolrd (.sdf)


#1

We create a robot that must go through a maze. We need a lot of random mazes for tests. For this, I started writing code that will generate a random maze and build on its basis a .sdf file. But I remembered that there is a Building Editor mode in Gazebo. It allows you to create walls by simply indicating the beginning and end, which is much easier. Is it possible to specify the beginning and end of the wall in .sdf? (not thinking about the size and location of the walls that are needed now).

P.S. I can’t register on http://answers.gazebosim.org/questions/


#2

Is it possible to specify the beginning and end of the wall in .sdf?

No, the building editor uses that description internally, but from the moment the walls are converted to SDF they become boxes.

We need a lot of random mazes for tests.

You may be interested in @Peter_Mitrano’s gzmaze plugin, which builds mazes at runtime from a text file:

P.S. I can’t register on http://answers.gazebosim.org/questions/

What’s the exact issue you’re having? Note that when you first create an account, you must wait for a moderator to approve it before your questions can be seen.