Gazebo | Ignition | Community
Ask Your Question

Does Gazebo have a topic to which we can publish models to be spawned into the world?

asked 2020-06-26 05:29:30 -0500

kumpakri gravatar image

I remember few years back when I was learning Gazebo I saw something about some factory topic to which you would publish when you wanted to spawn or delete a model to/from your world. But now I am unable to find anything about it. Did I just misinterpreted something? Does any mechanism as such exists in gazebo?

We want to run tests in the simulation and create different worlds for each case without turning the simulation off and loading it again. I don't think you can load the whole different world from description during the simulation, so I'm looking for a way to delete all the models from previous test case and spawn all the models for the next test case. Is there any best practice?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-06-26 07:34:28 -0500

It exists the /gazebo/server/control topic, which has an open_filename field, but the feature for dynamically loading a new world is not implemented.

For loading models, you have the ~/factory topic. Examples are here.

edit flag offensive delete link more

Question Tools



Asked: 2020-06-26 05:29:30 -0500

Seen: 122 times

Last updated: Jun 26 '20