All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Enumerations
common/Plugin.hh File Reference
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <gazebo_config.h>
#include <list>
#include <string>
#include "common/CommonTypes.hh"
#include "common/SystemPaths.hh"
#include "common/Console.hh"
#include "common/Exception.hh"
#include "physics/PhysicsTypes.hh"
#include "sensors/SensorTypes.hh"
#include "sdf/sdf.hh"
#include "rendering/RenderTypes.hh"
Include dependency graph for common/Plugin.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  gazebo::ModelPlugin
 A plugin with access to physics::Model. More...
 
class  gazebo::PluginT< T >
 A class which all plugins must inherit from. More...
 
class  gazebo::SensorPlugin
 A plugin with access to physics::Sensor. More...
 
class  gazebo::SystemPlugin
 A plugin loaded within the gzserver on startup. More...
 
class  gazebo::VisualPlugin
 A plugin loaded within the gzserver on startup. More...
 
class  gazebo::WorldPlugin
 A plugin with access to physics::World. More...
 

Namespaces

namespace  gazebo
 Forward declarations for the common classes.
 

Macros

#define GZ_REGISTER_MODEL_PLUGIN(classname)
 Plugin registration function for model plugin.
 
#define GZ_REGISTER_SENSOR_PLUGIN(classname)
 Plugin registration function for sensors.
 
#define GZ_REGISTER_SYSTEM_PLUGIN(classname)
 Plugin registration function for system plugin.
 
#define GZ_REGISTER_VISUAL_PLUGIN(classname)
 Plugin registration function for visual plugin.
 
#define GZ_REGISTER_WORLD_PLUGIN(classname)
 Plugin registration function for world plugin.
 

Enumerations

enum  gazebo::PluginType {
  gazebo::WORLD_PLUGIN, gazebo::MODEL_PLUGIN, gazebo::SENSOR_PLUGIN, gazebo::SYSTEM_PLUGIN,
  gazebo::VISUAL_PLUGIN
}
 Used to specify the type of plugin. More...
 

Macro Definition Documentation

#define GZ_REGISTER_MODEL_PLUGIN (   classname)
Value:
extern "C" gazebo::ModelPlugin *RegisterPlugin(); \
gazebo::ModelPlugin *RegisterPlugin() \
{\
return new classname();\
}

Plugin registration function for model plugin.

Part of the shared object interface. This function is called when loading the shared library to add the plugin to the registered list.

Returns
the name of the registered plugin
#define GZ_REGISTER_SENSOR_PLUGIN (   classname)
Value:
extern "C" gazebo::SensorPlugin *RegisterPlugin(); \
gazebo::SensorPlugin *RegisterPlugin() \
{\
return new classname();\
}

Plugin registration function for sensors.

Part of the shared object interface. This function is called when loading the shared library to add the plugin to the registered list.

Returns
the name of the registered plugin
#define GZ_REGISTER_SYSTEM_PLUGIN (   classname)
Value:
extern "C" gazebo::SystemPlugin *RegisterPlugin(); \
gazebo::SystemPlugin *RegisterPlugin() \
{\
return new classname();\
}

Plugin registration function for system plugin.

Part of the shared object interface. This function is called when loading the shared library to add the plugin to the registered list.

Returns
the name of the registered plugin
#define GZ_REGISTER_VISUAL_PLUGIN (   classname)
Value:
extern "C" gazebo::VisualPlugin *RegisterPlugin(); \
gazebo::VisualPlugin *RegisterPlugin() \
{\
return new classname();\
}

Plugin registration function for visual plugin.

Part of the shared object interface. This function is called when loading the shared library to add the plugin to the registered list.

Returns
the name of the registered plugin
#define GZ_REGISTER_WORLD_PLUGIN (   classname)
Value:
extern "C" gazebo::WorldPlugin *RegisterPlugin(); \
gazebo::WorldPlugin *RegisterPlugin() \
{\
return new classname();\
}

Plugin registration function for world plugin.

Part of the shared object interface. This function is called when loading the shared library to add the plugin to the registered list.

Returns
the name of the registered plugin