ArrangePlugin Class Reference

#include <ArrangePlugin.hh>

Inherits WorldPlugin.

Classes

class  Object
 Class to store info about each object. More...
 

Public Types

typedef boost::shared_ptr< WorldPluginTPtr
 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_MArrangement_M
 Map of strings to Pose_M (arrangement map). More...
 
typedef std::map< std::string, ObjectPtrObject_M
 Map of strings to model pointers. More...
 
typedef boost::shared_ptr< ObjectObjectPtr
 
typedef std::map< std::string, math::PosePose_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...
 

Member Typedef Documentation

§ Arrangement_M

typedef std::map<std::string, Pose_M> Arrangement_M
protected

Map of strings to Pose_M (arrangement map).

§ Object_M

typedef std::map<std::string, ObjectPtr> Object_M
protected

Map of strings to model pointers.

§ ObjectPtr

typedef boost::shared_ptr<Object> ObjectPtr
protected

§ Pose_M

typedef std::map<std::string, math::Pose> Pose_M
protected

Map of strings to model poses.

§ TPtr

typedef boost::shared_ptr<WorldPlugin > TPtr
inherited

plugin pointer type definition

Constructor & Destructor Documentation

§ ArrangePlugin()

Constructor.

§ ~ArrangePlugin()

Destructor.

Member Function Documentation

§ ArrangementCallback()

void ArrangementCallback ( ConstGzStringPtr &  _msg)

Callback function which receives a requested arrangement name.

§ Create()

static TPtr Create ( const std::string &  _filename,
const std::string &  _name 
)
inlinestaticinherited

a class method that creates a plugin from a file name.

It locates the shared library and loads it dynamically.

Parameters
[in]_filenamethe path to the shared library.
[in]_nameshort name of the plugin
Returns
Shared Pointer to this class type

§ GetFilename()

std::string GetFilename ( ) const
inlineinherited

Get the name of the handler.

§ GetHandle()

std::string GetHandle ( ) const
inlineinherited

Get the short name of the handler.

§ GetType()

PluginType GetType ( ) const
inlineinherited

Returns the type of the plugin.

Returns
type of the plugin

§ Init()

virtual void Init ( )
virtual

Initialize the plugin.

Reimplemented from WorldPlugin.

§ Load()

virtual void Load ( physics::WorldPtr  _world,
sdf::ElementPtr  _sdf 
)
virtual

Load the plugin.

Parameters
[in]_worldPointer to world
[in]_sdfPointer to the SDF configuration.

Implements WorldPlugin.

§ Reset()

virtual void Reset ( )
virtual

Reset the plugin.

Reimplemented from WorldPlugin.

§ SetArrangement()

bool SetArrangement ( const std::string &  _arrangement)

Set up the arrangement with name given by input parameter.

Parameters
[in]_arrangementName of arrangement.
Returns
True if arrangement was set successfully.

Member Data Documentation

§ arrangements

Arrangement_M arrangements
protected

Information about arrangements.

§ currentArrangementName

std::string currentArrangementName
protected

Current arrangement name.

§ eventTopicName

std::string eventTopicName
protected

Topic to listen on for changing arrangments.

§ filename

std::string filename
protectedinherited

Path to the shared library file.

§ handleName

std::string handleName
protectedinherited

Short name.

§ initialArrangementName

std::string initialArrangementName
protected

Initial arrangement name.

§ node

transport::NodePtr node
protected

Node for Gazebo transport.

§ objects

Object_M objects
protected

Collection of models.

§ sdf

sdf::ElementPtr sdf
protected

SDF pointer.

§ sub

transport::SubscriberPtr sub
protected

Subscriber for listening to changing arrangements.

§ type

PluginType type
protectedinherited

Type of plugin.

§ world

physics::WorldPtr world
protected

World pointer.


The documentation for this class was generated from the following file: