A generic interface to sensors (gyro, a/d converters). More...
#include <yarp/dev/IAnalogSensor.h>
Public Types | |
enum | { AS_OK =0, AS_ERROR =1, AS_OVF =2, AS_TIMEOUT =3 } |
Public Member Functions | |
virtual | ~IAnalogSensor () |
virtual int | read (yarp::sig::Vector &out)=0 |
Read a vector from the sensor. More... | |
virtual int | getState (int ch)=0 |
Check the state value of a given channel. More... | |
virtual int | getChannels ()=0 |
Get the number of channels of the sensor. More... | |
virtual int | calibrateSensor ()=0 |
Calibrates the whole sensor. More... | |
virtual int | calibrateSensor (const yarp::sig::Vector &value)=0 |
Calibrates the whole sensor, using an vector of calibration values. More... | |
virtual int | calibrateChannel (int ch)=0 |
Calibrates one single channel. More... | |
virtual int | calibrateChannel (int ch, double value)=0 |
Calibrates one single channel, using a calibration value. More... | |
A generic interface to sensors (gyro, a/d converters).
Similar to IGenerisSensor, but includes error handling.
Definition at line 30 of file IAnalogSensor.h.
anonymous enum |
Enumerator | |
---|---|
AS_OK | |
AS_ERROR | |
AS_OVF | |
AS_TIMEOUT |
Definition at line 33 of file IAnalogSensor.h.
|
virtualdefault |
|
pure virtual |
Calibrates one single channel.
ch | channel number. |
Implemented in FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Calibrates one single channel, using a calibration value.
ch | channel number. |
value | calibration value. |
Implemented in AnalogSensorClient, and FakeAnalogSensor.
|
pure virtual |
Calibrates the whole sensor.
Implemented in FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Calibrates the whole sensor, using an vector of calibration values.
value | a vector of calibration values. |
Implemented in AnalogSensorClient, and FakeAnalogSensor.
|
pure virtual |
Get the number of channels of the sensor.
Implemented in FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Check the state value of a given channel.
ch | channel number. |
Implemented in FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Read a vector from the sensor.
out | a vector containing the sensor's last readings. |
Implemented in FakeAnalogSensor, and AnalogSensorClient.