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. | |
virtual int | getState (int ch)=0 |
Check the state value of a given channel. | |
virtual int | getChannels ()=0 |
Get the number of channels of the sensor. | |
virtual int | calibrateSensor ()=0 |
Calibrates the whole sensor. | |
virtual int | calibrateSensor (const yarp::sig::Vector &value)=0 |
Calibrates the whole sensor, using an vector of calibration values. | |
virtual int | calibrateChannel (int ch)=0 |
Calibrates one single channel. | |
virtual int | calibrateChannel (int ch, double value)=0 |
Calibrates one single channel, using a calibration value. | |
A generic interface to sensors (gyro, a/d converters).
Similar to IGenerisSensor, but includes error handling.
Definition at line 26 of file IAnalogSensor.h.
anonymous enum |
Enumerator | |
---|---|
AS_OK | |
AS_ERROR | |
AS_OVF | |
AS_TIMEOUT |
Definition at line 29 of file IAnalogSensor.h.
|
virtualdefault |
|
pure virtual |
Calibrates one single channel.
ch | channel number. |
Implemented in realsense2Tracking, FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Calibrates one single channel, using a calibration value.
ch | channel number. |
value | calibration value. |
Implemented in FakeAnalogSensor, realsense2Tracking, and AnalogSensorClient.
|
pure virtual |
Calibrates the whole sensor.
Implemented in realsense2Tracking, FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Calibrates the whole sensor, using an vector of calibration values.
value | a vector of calibration values. |
Implemented in FakeAnalogSensor, realsense2Tracking, and AnalogSensorClient.
|
pure virtual |
Get the number of channels of the sensor.
Implemented in realsense2Tracking, FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Check the state value of a given channel.
ch | channel number. |
Implemented in realsense2Tracking, FakeAnalogSensor, and AnalogSensorClient.
|
pure virtual |
Read a vector from the sensor.
out | a vector containing the sensor's last readings. |
Implemented in realsense2Tracking, FakeAnalogSensor, and AnalogSensorClient.