#include <ArrangePlugin.hh>
Inherits WorldPlugin.
Classes | |
class | Object |
Class to store info about each object. More... | |
Public Types | |
typedef boost::shared_ptr < WorldPlugin > | TPtr |
plugin pointer type definition More... | |
Public Member Functions | |
ArrangePlugin () | |
Constructor. More... | |
~ArrangePlugin () | |
Destructor. More... | |
void | ArrangementCallback (ConstGzStringPtr &_msg) |
Callback function which receives a requested arrangement name. More... | |
std::string | GetFilename () const |
Get the name of the handler. More... | |
std::string | GetHandle () const |
Get the short name of the handler. More... | |
PluginType | GetType () const |
Returns the type of the plugin. More... | |
virtual void | Init () |
Initialize the plugin. More... | |
virtual void | Load (physics::WorldPtr _world, sdf::ElementPtr _sdf) |
Load the plugin. More... | |
virtual void | Reset () |
Reset the plugin. More... | |
bool | SetArrangement (const std::string &_arrangement) |
Set up the arrangement with name given by input parameter. More... | |
Static Public Member Functions | |
static TPtr | Create (const std::string &_filename, const std::string &_name) |
a class method that creates a plugin from a file name. More... | |
Protected Types | |
typedef std::map< std::string, Pose_M > | Arrangement_M |
Map of strings to Pose_M (arrangement map). More... | |
typedef std::map< std::string, ObjectPtr > | Object_M |
Map of strings to model pointers. More... | |
typedef boost::shared_ptr< Object > | ObjectPtr |
typedef std::map< std::string, math::Pose > | Pose_M |
Map of strings to model poses. More... | |
Protected Attributes | |
Arrangement_M | arrangements |
Information about arrangements. More... | |
std::string | currentArrangementName |
Current arrangement name. More... | |
std::string | eventTopicName |
Topic to listen on for changing arrangments. More... | |
std::string | filename |
Path to the shared library file. More... | |
std::string | handleName |
Short name. More... | |
std::string | initialArrangementName |
Initial arrangement name. More... | |
transport::NodePtr | node |
Node for Gazebo transport. More... | |
Object_M | objects |
Collection of models. More... | |
sdf::ElementPtr | sdf |
SDF pointer. More... | |
transport::SubscriberPtr | sub |
Subscriber for listening to changing arrangements. More... | |
PluginType | type |
Type of plugin. More... | |
physics::WorldPtr | world |
World pointer. More... | |
|
protected |
Map of strings to Pose_M (arrangement map).
|
protected |
Map of strings to model poses.
|
inherited |
plugin pointer type definition
ArrangePlugin | ( | ) |
Constructor.
~ArrangePlugin | ( | ) |
Destructor.
void ArrangementCallback | ( | ConstGzStringPtr & | _msg | ) |
Callback function which receives a requested arrangement name.
|
inlinestaticinherited |
a class method that creates a plugin from a file name.
It locates the shared library and loads it dynamically.
[in] | _filename | the path to the shared library. |
[in] | _name | short name of the plugin |
|
inlineinherited |
Get the name of the handler.
|
inlineinherited |
Get the short name of the handler.
|
inlineinherited |
Returns the type of the plugin.
|
virtual |
Initialize the plugin.
Reimplemented from WorldPlugin.
|
virtual |
Load the plugin.
[in] | _world | Pointer to world |
[in] | _sdf | Pointer to the SDF configuration. |
Implements WorldPlugin.
|
virtual |
Reset the plugin.
Reimplemented from WorldPlugin.
bool SetArrangement | ( | const std::string & | _arrangement | ) |
Set up the arrangement with name given by input parameter.
[in] | _arrangement | Name of arrangement. |
|
protected |
Information about arrangements.
|
protected |
Current arrangement name.
|
protected |
Topic to listen on for changing arrangments.
|
protectedinherited |
Path to the shared library file.
|
protectedinherited |
Short name.
|
protected |
Initial arrangement name.
|
protected |
Node for Gazebo transport.
|
protected |
Collection of models.
|
protected |
SDF pointer.
|
protected |
Subscriber for listening to changing arrangements.
|
protectedinherited |
Type of plugin.
Referenced by WorldPlugin::WorldPlugin().
|
protected |
World pointer.