Robotics StackExchange | Archived questions

Load another world at runtime

Dear Gazebo Users,

is it possible to load and run another world in a WorldPlugin and/or SystemPlugin at runtime? The running world should be replaced with a given new one. I don't need multiple worlds running. For my purposes, it's not possible to kill the running Gazebo instance and start a new one with a different world.

Thanks for your help!

Greetings

P.s. I'am using Gazebo 1.9.5

Asked by Sir.Math-a-lot on 2014-07-08 09:19:56 UTC

Comments

Answers

A SystemPlugin could achieve the desired outcome, but I have tried such a thing.

You could try writing a simple main function that runs gzserver, like this;

Asked by nkoenig on 2014-07-08 12:52:00 UTC

Comments

Dear Nate, thanks for your comment! The main function would be a good fallback. I'll keep that in mind. Thanks. However, if you find anything to load another world in a SystemPlugin, let me know :)

Asked by Sir.Math-a-lot on 2014-07-09 03:29:57 UTC