iCub-main
|
This class implements the reading of joints encoders. More...
#include <sensors.h>
Public Member Functions | |
bool | configure (void *source, const yarp::os::Property &options) |
Configure the sensor. More... | |
bool | getOutput (yarp::os::Value &in) const |
Retrieve the sensor joint value. More... | |
Public Member Functions inherited from iCub::perception::Sensor | |
Sensor () | |
Constructor. More... | |
std::string | getName () const |
Retrieve the sensor name. More... | |
virtual | ~Sensor () |
Destructor. More... | |
Protected Attributes | |
int | size |
int | index |
Protected Attributes inherited from iCub::perception::Sensor | |
std::string | name |
bool | configured |
void * | source |
|
virtual |
Configure the sensor.
source | a pointer to the yarp::dev::IEncoders interface. |
options | a Property containing the configuration parameters. Available options are: name: the name of the sensor. size: the size of the whole sensor data vector. index: the index corresponding to the joint that needs to be sensed. |
Implements iCub::perception::Sensor.
Definition at line 44 of file sensors.cpp.
|
virtual |
Retrieve the sensor joint value.
in | a value containing the encoder value. |
Implements iCub::perception::Sensor.
Definition at line 60 of file sensors.cpp.