YARP
Yet Another Robot Platform
yarp::dev::ImplementVirtualAnalogSensor Class Reference

#include <yarp/dev/ImplementVirtualAnalogSensor.h>

+ Inheritance diagram for yarp::dev::ImplementVirtualAnalogSensor:

Public Member Functions

bool initialize (int k, const int *amap, const double *userToRaw)
 
bool uninitialize ()
 
 ImplementVirtualAnalogSensor (IVirtualAnalogSensorRaw *virt)
 
 ~ImplementVirtualAnalogSensor ()
 
VAS_status getVirtualAnalogSensorStatus (int ch) override
 Check the status of a given channel. More...
 
int getVirtualAnalogSensorChannels () override
 Get the number of channels of the virtual sensor. More...
 
bool updateVirtualAnalogSensorMeasure (yarp::sig::Vector &measure) override
 Set a vector of torque values for virtual sensor. More...
 
bool updateVirtualAnalogSensorMeasure (int ch, double &measure) override
 
- Public Member Functions inherited from yarp::dev::IVirtualAnalogSensor
virtual ~IVirtualAnalogSensor ()
 

Detailed Description

Definition at line 23 of file ImplementVirtualAnalogSensor.h.

Constructor & Destructor Documentation

◆ ImplementVirtualAnalogSensor()

ImplementVirtualAnalogSensor::ImplementVirtualAnalogSensor ( IVirtualAnalogSensorRaw virt)

Definition at line 17 of file ImplementVirtualAnalogSensor.cpp.

◆ ~ImplementVirtualAnalogSensor()

ImplementVirtualAnalogSensor::~ImplementVirtualAnalogSensor ( )

Definition at line 23 of file ImplementVirtualAnalogSensor.cpp.

Member Function Documentation

◆ getVirtualAnalogSensorChannels()

int ImplementVirtualAnalogSensor::getVirtualAnalogSensorChannels ( )
overridevirtual

Get the number of channels of the virtual sensor.

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

Implements yarp::dev::IVirtualAnalogSensor.

Definition at line 62 of file ImplementVirtualAnalogSensor.cpp.

◆ getVirtualAnalogSensorStatus()

yarp::dev::VAS_status ImplementVirtualAnalogSensor::getVirtualAnalogSensorStatus ( int  ch)
overridevirtual

Check the status of a given channel.

Parameters
chchannel number.
Returns
VAS_status type.

Implements yarp::dev::IVirtualAnalogSensor.

Definition at line 49 of file ImplementVirtualAnalogSensor.cpp.

◆ initialize()

bool ImplementVirtualAnalogSensor::initialize ( int  k,
const int *  amap,
const double *  userToRaw 
)

Definition at line 28 of file ImplementVirtualAnalogSensor.cpp.

◆ uninitialize()

bool ImplementVirtualAnalogSensor::uninitialize ( )

Definition at line 39 of file ImplementVirtualAnalogSensor.cpp.

◆ updateVirtualAnalogSensorMeasure() [1/2]

bool ImplementVirtualAnalogSensor::updateVirtualAnalogSensorMeasure ( int  ch,
double &  measure 
)
overridevirtual

Implements yarp::dev::IVirtualAnalogSensor.

Definition at line 75 of file ImplementVirtualAnalogSensor.cpp.

◆ updateVirtualAnalogSensorMeasure() [2/2]

bool ImplementVirtualAnalogSensor::updateVirtualAnalogSensorMeasure ( yarp::sig::Vector measure)
overridevirtual

Set a vector of torque values for virtual sensor.

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

Implements yarp::dev::IVirtualAnalogSensor.

Definition at line 67 of file ImplementVirtualAnalogSensor.cpp.


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