Home | Tutorials | Wiki | Issues
Ask Your Question
1

Open/close world via messages

asked 2016-03-23 16:44:38 -0500

gshopov gravatar image

I looked through the Messages API and tried to use WorldModify messages like this:

  • send a WorldModify message with remove set to true and world_name set to default to close the current world (also tried to reference the world with "worlds/empty.world")
  • send a WorldModify message with create set to true and world_name set to, for example, worlds/pioneer2dx.world in order to open a new world

The result is that if I have the client open it crashes, otherwise (if gazebo is running headless) nothing changes. I have also tried to first pause the world then send the WorldModify messages and then do a reset with a WorldReset message but again nothing happened. I check with gz topic -e /gazebo/world/modify that gazebo receives the messages, so I guess I'm not using them properly.

Is it possible to open/close worlds via messages? If it is, how do you do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-03-23 20:21:56 -0500

chapulina gravatar image

Unfortunately, this functionality is not implemented in Gazebo 7 yet. But it is under active development and hopefully it will come into one of the future releases of Gazebo 7 or in Gazebo 8.

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2016-03-23 16:44:38 -0500

Seen: 382 times

Last updated: Mar 23 '16