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

#include <yarp/dev/IVirtualAnalogSensor.h>

+ Inheritance diagram for yarp::dev::IVirtualAnalogSensor:

Detailed Description

A generic interface to a virtual sensors. A virtual sensor is any device that can generate values used as a measure by robot

Definition at line 48 of file IVirtualAnalogSensor.h.

Public Member Functions

virtual ~IVirtualAnalogSensor ()
 
virtual VAS_status getVirtualAnalogSensorStatus (int ch)=0
 Check the status of a given channel. More...
 
virtual int getVirtualAnalogSensorChannels ()=0
 Get the number of channels of the virtual sensor. More...
 
virtual bool updateVirtualAnalogSensorMeasure (yarp::sig::Vector &measure)=0
 Set a vector of torque values for virtual sensor. More...
 
virtual bool updateVirtualAnalogSensorMeasure (int ch, double &measure)=0
 

Constructor & Destructor Documentation

◆ ~IVirtualAnalogSensor()

virtual yarp::dev::IVirtualAnalogSensor::~IVirtualAnalogSensor ( )
inlinevirtual

Definition at line 52 of file IVirtualAnalogSensor.h.

Member Function Documentation

◆ getVirtualAnalogSensorChannels()

virtual int yarp::dev::IVirtualAnalogSensor::getVirtualAnalogSensorChannels ( )
pure virtual

Get the number of channels of the virtual sensor.

Returns
number of channels (0 in case of errors).

Implemented in yarp::dev::ImplementVirtualAnalogSensor.

◆ getVirtualAnalogSensorStatus()

virtual VAS_status yarp::dev::IVirtualAnalogSensor::getVirtualAnalogSensorStatus ( int  ch)
pure virtual

Check the status of a given channel.

Parameters
chchannel number.
Returns
VAS_status type.

Implemented in yarp::dev::ImplementVirtualAnalogSensor.

◆ updateVirtualAnalogSensorMeasure() [1/2]

virtual bool yarp::dev::IVirtualAnalogSensor::updateVirtualAnalogSensorMeasure ( int  ch,
double &  measure 
)
pure virtual

◆ updateVirtualAnalogSensorMeasure() [2/2]

virtual bool yarp::dev::IVirtualAnalogSensor::updateVirtualAnalogSensorMeasure ( yarp::sig::Vector measure)
pure virtual

Set a vector of torque values for virtual sensor.

Parameters
measurea vector containing the sensor's last readings.
Returns
true if ok, false otherwise.

Implemented in yarp::dev::ImplementVirtualAnalogSensor.


The documentation for this class was generated from the following file: