A generic interface to sensors – gyro, a/d converters etc.
More...
#include <yarp/dev/IGenericSensor.h>
A generic interface to sensors – gyro, a/d converters etc.
Definition at line 24 of file IGenericSensor.h.
◆ ~IGenericSensor()
yarp::dev::IGenericSensor::~IGenericSensor |
( |
| ) |
|
|
virtualdefault |
◆ calibrate()
virtual bool yarp::dev::IGenericSensor::calibrate |
( |
int |
ch, |
|
|
double |
v |
|
) |
| |
|
pure virtual |
Calibrate the sensor, single channel.
- Parameters
-
ch | channel number |
v | reset valure |
- Returns
- true/false success/failure
Implemented in ServerInertial, BoschIMU, and fakeIMU.
◆ getChannels()
virtual bool yarp::dev::IGenericSensor::getChannels |
( |
int * |
nc | ) |
|
|
pure virtual |
Get the number of channels of the sensor.
- Parameters
-
nc | pointer to storage, return value |
- Returns
- true/false success/failure
Implemented in ServerInertial, BoschIMU, and fakeIMU.
◆ read()
Read a vector from the sensor.
- Parameters
-
out | a vector containing the sensor's last readings. |
- Returns
- true/false success/failure
Implemented in ServerInertial, BoschIMU, and fakeIMU.
The documentation for this class was generated from the following files: