iCub-main
|
This class implements the reading of a value from a port. More...
#include <sensors.h>
Public Member Functions | |
bool | configure (void *source, const yarp::os::Property &options) |
Configure the sensor. | |
bool | getOutput (yarp::os::Value &in) const |
Retrieve the sensor output. | |
Public Member Functions inherited from iCub::perception::Sensor | |
Sensor () | |
Constructor. | |
std::string | getName () const |
Retrieve the sensor name. | |
virtual | ~Sensor () |
Destructor. | |
Protected Attributes | |
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::os::Port object. |
options | a Property containing the configuration parameters. Available options are: name: the name of the sensor. index: the index corresponding to the double that needs to be retrieved. |
Implements iCub::perception::Sensor.
Definition at line 120 of file sensors.cpp.
|
virtual |
Retrieve the sensor output.
in | is filled with the current output value. |
Implements iCub::perception::Sensor.
Definition at line 134 of file sensors.cpp.