Simox  2.3.74.0
VirtualRobot::PositionSensorFactory Class Reference
Inheritance diagram for VirtualRobot::PositionSensorFactory:
VirtualRobot::SensorFactory AbstractFactoryMethod< SensorFactory, void *>

Public Member Functions

 PositionSensorFactory ()
 
 ~PositionSensorFactory () override
 
SensorPtr createSensor (GraspableSensorizedObjectPtr node, const std::string &name, VisualizationNodePtr visualization=VisualizationNodePtr(), const Eigen::Matrix4f &rnTrafo=Eigen::Matrix4f::Identity()) const override
 Standard init method. More...
 
SensorPtr createSensor (GraspableSensorizedObjectPtr node, rapidxml::xml_node< char > *sensorXMLNode, BaseIO::RobotDescription loadMode=RobotIO::eFull, const std::string basePath=std::string()) const override
 
- Public Member Functions inherited from VirtualRobot::SensorFactory
 SensorFactory ()
 
virtual ~SensorFactory ()
 
- Public Member Functions inherited from AbstractFactoryMethod< SensorFactory, void *>
void setDescription (const std::string &newDescription)
 
std::string getDescription () const
 

Static Public Member Functions

static std::string getName ()
 
static std::shared_ptr< SensorFactorycreateInstance (void *)
 
- Static Public Member Functions inherited from AbstractFactoryMethod< SensorFactory, void *>
static std::shared_ptr< SensorFactory > fromName (const std::string &name, void * params)
 
static std::shared_ptr< SensorFactory > first (void * params)
 
static std::string getName ()
 
static std::shared_ptr< SensorFactory > createInstance (void *)
 
static void registerClass (const std::string &name, initialisationFunction init)
 
static std::vector< std::string > getSubclassList ()
 

Additional Inherited Members

- Public Types inherited from AbstractFactoryMethod< SensorFactory, void *>
typedef std::shared_ptr< SensorFactory >(* initialisationFunction) (void *)
 

Constructor & Destructor Documentation

◆ PositionSensorFactory()

VirtualRobot::PositionSensorFactory::PositionSensorFactory ( )
default

◆ ~PositionSensorFactory()

VirtualRobot::PositionSensorFactory::~PositionSensorFactory ( )
overridedefault

Member Function Documentation

◆ createInstance()

std::shared_ptr< SensorFactory > VirtualRobot::PositionSensorFactory::createInstance ( void *  )
static
Returns
new instance of PositionSensorFactory.

◆ createSensor() [1/2]

SensorPtr VirtualRobot::PositionSensorFactory::createSensor ( GraspableSensorizedObjectPtr  node,
const std::string &  name,
VisualizationNodePtr  visualization = VisualizationNodePtr(),
const Eigen::Matrix4f &  rnTrafo = Eigen::Matrix4f::Identity() 
) const
overridevirtual

Standard init method.

This method creates a VirtualRobot::PositionSensor.

Returns
instance of VirtualRobot::PositionSensor.

Reimplemented from VirtualRobot::SensorFactory.

◆ createSensor() [2/2]

SensorPtr VirtualRobot::PositionSensorFactory::createSensor ( GraspableSensorizedObjectPtr  node,
rapidxml::xml_node< char > *  sensorXMLNode,
BaseIO::RobotDescription  loadMode = RobotIO::eFull,
const std::string  basePath = std::string() 
) const
overridevirtual

Create sensor from XML tag.

Reimplemented from VirtualRobot::SensorFactory.

◆ getName()

std::string VirtualRobot::PositionSensorFactory::getName ( )
static
Returns
"position"