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

Public Member Functions

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

◆ ContactSensorFactory()

VirtualRobot::ContactSensorFactory::ContactSensorFactory ( )
default

◆ ~ContactSensorFactory()

VirtualRobot::ContactSensorFactory::~ContactSensorFactory ( )
overridedefault

Member Function Documentation

◆ createInstance()

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

◆ createSensor() [1/2]

SensorPtr VirtualRobot::ContactSensorFactory::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::ContactSensor.

Returns
instance of VirtualRobot::ContactSensor.

Reimplemented from VirtualRobot::SensorFactory.

◆ createSensor() [2/2]

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