Gazebo | Ignition | Community
Ask Your Question

Is it possible to define a world plugin outside the world file?

asked 2018-10-08 06:56:15 -0500

kumpakri gravatar image

updated 2018-10-08 06:56:59 -0500

I would like to have my raw world in one .world file and then some plugins in other file.

I would like to have world.launch file that would only launch the raw world and world_with_plugin.launch file that would launch the world with the plugin. And I don't want to have redundant code of the world just to have few lines with a plugin in the other one.

How can I do that?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-10-08 11:40:25 -0500

chapulina gravatar image

There may be other ways, but one way could be to turn the plugin into a SystemPlugin, which can be loaded from the command line. Then it's a matter of passing the -s flag to load the world with the plugin.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2018-10-08 06:56:15 -0500

Seen: 143 times

Last updated: Oct 08 '18