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

Public Member Functions

 CameraSensorFactory ()
 
 ~CameraSensorFactory () 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

◆ CameraSensorFactory()

VirtualRobot::CameraSensorFactory::CameraSensorFactory ( )
default

◆ ~CameraSensorFactory()

VirtualRobot::CameraSensorFactory::~CameraSensorFactory ( )
overridedefault

Member Function Documentation

◆ createInstance()

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

◆ createSensor() [1/2]

SensorPtr VirtualRobot::CameraSensorFactory::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::CameraSensor.

Returns
instance of VirtualRobot::CameraSensor.

Reimplemented from VirtualRobot::SensorFactory.

◆ createSensor() [2/2]

SensorPtr VirtualRobot::CameraSensorFactory::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::CameraSensorFactory::getName ( )
static
Returns
"camera"