Gazebo | Ignition | Community
Ask Your Question
0

Reset a sub world in gazebo world

asked 2021-06-03 11:08:18 -0500

kolohe113 gravatar image

Say I have a bunch of sub worlds in gazebo, is there any way to reset a particular sub world?

Here is what I mean, assuming I have 4 sub worlds in gazebo:

image description

How do I reset, say, sub world number 2 without resetting the other three?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2021-06-04 04:56:59 -0500

nlamprian gravatar image

Each world has its own control topic where you can publish to reset it.

For example (from the terminal):

gz world -w default -r

or

gz topic -p /gazebo/default/world_control -m "reset {all: true}"
edit flag offensive delete link more

Comments

Thank you for answering! So there is a way to spawn multiple worlds in the same gazebo simulation?

kolohe113 gravatar imagekolohe113 ( 2021-06-04 09:39:58 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2021-06-03 11:08:18 -0500

Seen: 30 times

Last updated: Jun 04