YARP
Yet Another Robot Platform
yarp::dev::IGenericSensor Class Referenceabstract

A generic interface to sensors – gyro, a/d converters etc. More...

#include <yarp/dev/IGenericSensor.h>

+ Inheritance diagram for yarp::dev::IGenericSensor:

Public Member Functions

virtual ~IGenericSensor ()
 
virtual bool read (yarp::sig::Vector &out)=0
 Read a vector from the sensor. More...
 
virtual bool getChannels (int *nc)=0
 Get the number of channels of the sensor. More...
 
virtual bool calibrate (int ch, double v)=0
 Calibrate the sensor, single channel. More...
 

Detailed Description

A generic interface to sensors – gyro, a/d converters etc.

Definition at line 24 of file IGenericSensor.h.

Constructor & Destructor Documentation

◆ ~IGenericSensor()

yarp::dev::IGenericSensor::~IGenericSensor ( )
virtualdefault

Member Function Documentation

◆ calibrate()

virtual bool yarp::dev::IGenericSensor::calibrate ( int  ch,
double  v 
)
pure virtual

Calibrate the sensor, single channel.

Parameters
chchannel number
vreset 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
ncpointer to storage, return value
Returns
true/false success/failure

Implemented in ServerInertial, BoschIMU, and fakeIMU.

◆ read()

virtual bool yarp::dev::IGenericSensor::read ( yarp::sig::Vector out)
pure virtual

Read a vector from the sensor.

Parameters
outa 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: