Gazebo | Ignition | Community
Ask Your Question
0

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

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

kumpakri gravatar image

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

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
0

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

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 libMyPlugin.so flag to load the world with the plugin.

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 153 times

Last updated: Oct 08 '18