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

Public Member Functions

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

Additional Inherited Members

- Public Types inherited from AbstractFactoryMethod< SensorFactory, void *>
typedef std::shared_ptr< SensorFactory >(* initialisationFunction) (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 ()
 

Constructor & Destructor Documentation

◆ SensorFactory()

VirtualRobot::SensorFactory::SensorFactory ( )
inline

◆ ~SensorFactory()

virtual VirtualRobot::SensorFactory::~SensorFactory ( )
inlinevirtual

Member Function Documentation

◆ createSensor() [1/2]

virtual SensorPtr VirtualRobot::SensorFactory::createSensor ( GraspableSensorizedObjectPtr  ,
const std::string &  ,
VisualizationNodePtr  = VisualizationNodePtr(),
const Eigen::Matrix4f &  = Eigen::Matrix4f::Identity() 
) const
inlinevirtual

◆ createSensor() [2/2]

virtual SensorPtr VirtualRobot::SensorFactory::createSensor ( GraspableSensorizedObjectPtr  ,
rapidxml::xml_node< char > *  ,
BaseIO::RobotDescription  = RobotIO::eFull,
const std::string  = std::string() 
) const
inlinevirtual

Create sensor from XML tag. Factories of custom sensors can initialize with this method.

Reimplemented in VirtualRobot::CameraSensorFactory, VirtualRobot::PositionSensorFactory, VirtualRobot::ContactSensorFactory, and VirtualRobot::ForceTorqueSensorFactory.