Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
gazebo::DynamicsFactory Class Reference

Factory singleton class that creates a ThrusterDynamics from sdf. More...

#include <Dynamics.hh>

Public Member Functions

DynamicsCreateDynamics (sdf::ElementPtr _sdf)
 Create ThrusterDynamics object according to its sdf Description. More...
 
bool RegisterCreator (const std::string &_identifier, DynamicsCreator _creator)
 Register a ThrusterDynamic class with its creator. More...
 

Static Public Member Functions

static DynamicsFactoryGetInstance ()
 Returns the singleton instance of this factory. More...
 

Private Member Functions

 DynamicsFactory ()
 Constructor is private since this is a singleton. More...
 

Private Attributes

std::map< std::string, DynamicsCreatorcreators_
 Map of each registered identifier to its corresponding creator. More...
 

Detailed Description

Factory singleton class that creates a ThrusterDynamics from sdf.

Definition at line 60 of file Dynamics.hh.

Constructor & Destructor Documentation

gazebo::DynamicsFactory::DynamicsFactory ( )
inlineprivate

Constructor is private since this is a singleton.

Definition at line 73 of file Dynamics.hh.

Member Function Documentation

Dynamics * gazebo::DynamicsFactory::CreateDynamics ( sdf::ElementPtr  _sdf)

Create ThrusterDynamics object according to its sdf Description.

Definition at line 30 of file Dynamics.cc.

DynamicsFactory & gazebo::DynamicsFactory::GetInstance ( )
static

Returns the singleton instance of this factory.

Definition at line 52 of file Dynamics.cc.

bool gazebo::DynamicsFactory::RegisterCreator ( const std::string &  _identifier,
DynamicsCreator  _creator 
)

Register a ThrusterDynamic class with its creator.

Definition at line 59 of file Dynamics.cc.

Member Data Documentation

std::map<std::string, DynamicsCreator> gazebo::DynamicsFactory::creators_
private

Map of each registered identifier to its corresponding creator.

Definition at line 76 of file Dynamics.hh.


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


uuv_gazebo_plugins
Author(s): Musa Morena Marcusso Manhaes , Sebastian Scherer , Luiz Ricardo Douat
autogenerated on Thu Jun 18 2020 03:28:24