Klamp't
0.8.1
|
A set of sensors for the robot. More...
#include <Sensor.h>
Public Member Functions | |
void | MakeDefault (Robot *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< SensorBase > | GetNamedSensor (const string &name) |
template<class T > | |
void | GetTypedSensors (vector< T * > &sensors) |
template<class T > | |
T * | GetTypedSensor (int index=0) |
Public Attributes | |
vector< shared_ptr< SensorBase > > | sensors |
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.