Robotics StackExchange | Archived questions

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

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 worldwithplugin.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?

Asked by kumpakri on 2018-10-08 06:56:15 UTC

Comments

Answers

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.

Asked by chapulina on 2018-10-08 11:40:25 UTC

Comments