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

A generic interface to a virtual sensors. More...

#include <yarp/dev/IVirtualAnalogSensor.h>

+ Inheritance diagram for yarp::dev::IVirtualAnalogSensorRaw:

Public Member Functions

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

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 83 of file IVirtualAnalogSensor.h.

Constructor & Destructor Documentation

◆ ~IVirtualAnalogSensorRaw()

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

Definition at line 87 of file IVirtualAnalogSensor.h.

Member Function Documentation

◆ getVirtualAnalogSensorChannelsRaw()

virtual int yarp::dev::IVirtualAnalogSensorRaw::getVirtualAnalogSensorChannelsRaw ( )
pure virtual

Get the number of channels of the virtual sensor.

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

Implemented in FakeMotionControl.

◆ getVirtualAnalogSensorStatusRaw()

virtual VAS_status yarp::dev::IVirtualAnalogSensorRaw::getVirtualAnalogSensorStatusRaw ( int  ch)
pure virtual

Check the status of a given channel.

Parameters
chchannel number.
Returns
VAS_status type.

Implemented in FakeMotionControl.

◆ updateVirtualAnalogSensorMeasureRaw() [1/2]

virtual bool yarp::dev::IVirtualAnalogSensorRaw::updateVirtualAnalogSensorMeasureRaw ( int  ch,
double &  measure 
)
pure virtual

Implemented in FakeMotionControl.

◆ updateVirtualAnalogSensorMeasureRaw() [2/2]

virtual bool yarp::dev::IVirtualAnalogSensorRaw::updateVirtualAnalogSensorMeasureRaw ( 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 FakeMotionControl.


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