iCub-main
|
An abstract class that exposes the basic methods for sensors handling. More...
#include <sensors.h>
Public Member Functions | |
Sensor () | |
Constructor. More... | |
std::string | getName () const |
Retrieve the sensor name. More... | |
virtual bool | configure (void *source, const yarp::os::Property &options)=0 |
Configure the sensor. More... | |
virtual bool | getOutput (yarp::os::Value &in) const =0 |
Retrieve the sensor raw output. More... | |
virtual | ~Sensor () |
Destructor. More... | |
Protected Attributes | |
std::string | name |
bool | configured |
void * | source |
An abstract class that exposes the basic methods for sensors handling.
Sensor::Sensor | ( | ) |
Constructor.
Definition at line 35 of file sensors.cpp.
|
inlinevirtual |
|
pure virtual |
Configure the sensor.
source | a pointer to the underlying structure to which the sensor is attached. |
options | a Property containing the configuration parameters. |
Implemented in iCub::perception::SensorPort, iCub::perception::SensorEncoderArrays, and iCub::perception::SensorEncoders.
|
inline |
|
pure virtual |
Retrieve the sensor raw output.
in | a value containing the sensor output. |
Implemented in iCub::perception::SensorPort, iCub::perception::SensorEncoderArrays, and iCub::perception::SensorEncoders.