Klamp't  0.9.0
Public Member Functions | Public Attributes | List of all members
Klampt::RobotSensors Class Reference

A set of sensors for the robot. More...

#include <Sensor.h>

Public Member Functions

void MakeDefault (RobotModel *robot)
 
bool LoadSettings (const char *fn)
 
bool SaveSettings (const char *fn)
 
bool LoadSettings (TiXmlElement *in)
 
void SaveSettings (TiXmlElement *out)
 
bool LoadMeasurements (TiXmlElement *in)
 
void SaveMeasurements (TiXmlElement *out)
 
bool ReadState (File &f)
 
bool WriteState (File &f) const
 
shared_ptr< SensorBaseGetNamedSensor (const string &name)
 
template<class T >
void GetTypedSensors (vector< T * > &sensors)
 
template<class T >
T * GetTypedSensor (int index=0)
 
shared_ptr< SensorBaseCreateByType (const char *type) const
 

Public Attributes

vector< shared_ptr< SensorBase > > sensors
 

Detailed Description

A set of sensors for the robot.

Accepts saving/loading to XML format.

MakeDefault first looks in the robot->properties["sensors"] element to load an XML file. If this fails, then it will add joint position and joint velocity sensors to the robot.


The documentation for this class was generated from the following file: