#include <GazeboPluginLoader.h>
Public Member Functions | |
GazeboPluginLoader () | |
void | Load (int argc, char **argv) |
Private Member Functions | |
void | onWorldCreate () |
Private Attributes | |
event::ConnectionPtr | update_connection |
System plugin which can be used to load World plugins dynamically, without the need of having to put them in the Gazebo world file.
The plugins to be loaded can be specified in a YAML file, which needs to be loaded onto the parameter server under **namespace gazebo_state_plugins**, as follows:
``` world_name: "default" world_plugins:
**Usage:**
This plugin is a system plugin which has to be loaded together with gazebo, e.g.:
``gzserver -s libgazebo_world_plugin_loader.so``
**Limitation:**
The method *WorldPlugin::Load(physics::WorldPtr, sdf::ElementPtr)* on the plugins will be called with a NULL sdf::ElementPtr. So the plugins should alternatively support reading their parameters from the ROS parameter server.
Definition at line 46 of file GazeboPluginLoader.h.
Definition at line 10 of file GazeboPluginLoader.cpp.
void GazeboPluginLoader::Load | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 16 of file GazeboPluginLoader.cpp.
void GazeboPluginLoader::onWorldCreate | ( | ) | [private] |
Definition at line 19 of file GazeboPluginLoader.cpp.
Definition at line 55 of file GazeboPluginLoader.h.