Simox  2.3.49
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 (RobotNodePtr, const std::string &, VisualizationNodePtr=VisualizationNodePtr(), const Eigen::Matrix4f &=Eigen::Matrix4f::Identity()) const
 Standard init method. More...
 
virtual SensorPtr createSensor (RobotNodePtr, rapidxml::xml_node< char > *, RobotIO::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 boost::shared_ptr< SensorFactory >(* initialisationFunction) (void *)
 
- Static Public Member Functions inherited from AbstractFactoryMethod< SensorFactory, void * >
static boost::shared_ptr< SensorFactory > fromName (const std::string &name, void *params)
 
static boost::shared_ptr< SensorFactory > first (void *params)
 
static std::string getName ()
 
static boost::shared_ptr< SensorFactory > createInstance (void *)
 
static void registerClass (const std::string &name, initialisationFunction init)
 
static std::vector< std::string > getSubclassList ()
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual SensorPtr VirtualRobot::SensorFactory::createSensor ( RobotNodePtr  ,
const std::string &  ,
VisualizationNodePtr  = VisualizationNodePtr(),
const Eigen::Matrix4f &  = Eigen::Matrix4f::Identity() 
) const
inlinevirtual
virtual SensorPtr VirtualRobot::SensorFactory::createSensor ( RobotNodePtr  ,
rapidxml::xml_node< char > *  ,
RobotIO::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.