This class implements the reading of encoders through MultipleAnalogSensors (MAS) interfaces.
More...
#include <sensors.h>
This class implements the reading of encoders through MultipleAnalogSensors (MAS) interfaces.
Definition at line 201 of file sensors.h.
◆ configure()
bool SensorEncoderArrays::configure |
( |
void * |
source, |
|
|
const yarp::os::Property & |
options |
|
) |
| |
|
virtual |
Configure the sensor.
- Parameters
-
source | a pointer to the yarp::dev::IEncoderArrays interface. |
options | a Property containing the configuration parameters. Available options are:
name: the name of the sensor.
num_arrays: the number of available arrays.
index_array: the index of the array to be sensed. index_element: the index of the element of the array. |
- Returns
- true/false on success/failure.
Implements iCub::perception::Sensor.
Definition at line 74 of file sensors.cpp.
◆ getOutput()
bool SensorEncoderArrays::getOutput |
( |
yarp::os::Value & |
in | ) |
const |
|
virtual |
Retrieve the sensor encoder value.
- Parameters
-
in | a value containing the encoder value. |
- Returns
- true/false on success/failure.
Implements iCub::perception::Sensor.
Definition at line 91 of file sensors.cpp.
◆ index_array
int iCub::perception::SensorEncoderArrays::index_array |
|
protected |
◆ index_element
int iCub::perception::SensorEncoderArrays::index_element |
|
protected |
◆ latch
yarp::os::Value iCub::perception::SensorEncoderArrays::latch |
|
mutableprotected |
◆ num_arrays
int iCub::perception::SensorEncoderArrays::num_arrays |
|
protected |
The documentation for this class was generated from the following files:
- icub-main/src/libraries/perceptiveModels/include/iCub/perception/sensors.h
- icub-main/src/libraries/perceptiveModels/src/sensors.cpp