multipleanalogsensorsclient
: The client side of a device exposing MultipleAnalogSensors interfaces.
More...
#include <multipleanalogsensorsclient/MultipleAnalogSensorsClient.h>
Public Member Functions | |
bool | open (yarp::os::Searchable &config) override |
Open the DeviceDriver. More... | |
bool | close () override |
Close the DeviceDriver. More... | |
size_t | getNrOfThreeAxisGyroscopes () const override |
Get the number of three axis gyroscopes exposed by this sensor. More... | |
yarp::dev::MAS_status | getThreeAxisGyroscopeStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getThreeAxisGyroscopeName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getThreeAxisGyroscopeFrameName (size_t sens_index, std::string &frameName) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getThreeAxisGyroscopeMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the gyroscope. More... | |
size_t | getNrOfThreeAxisLinearAccelerometers () const override |
Get the number of three axis linear accelerometers exposed by this device. More... | |
yarp::dev::MAS_status | getThreeAxisLinearAccelerometerStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getThreeAxisLinearAccelerometerName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getThreeAxisLinearAccelerometerFrameName (size_t sens_index, std::string &frameName) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getThreeAxisLinearAccelerometerMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getNrOfThreeAxisMagnetometers () const override |
Get the number of magnetometers exposed by this device. More... | |
yarp::dev::MAS_status | getThreeAxisMagnetometerStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getThreeAxisMagnetometerName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getThreeAxisMagnetometerFrameName (size_t sens_index, std::string &frameName) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getThreeAxisMagnetometerMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getNrOfPositionSensors () const override |
Get the number of position sensors exposed by this device. More... | |
yarp::dev::MAS_status | getPositionSensorStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getPositionSensorName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getPositionSensorFrameName (size_t sens_index, std::string &frameName) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getPositionSensorMeasure (size_t sens_index, yarp::sig::Vector &xyz, double ×tamp) const override |
Get the last reading of the position sensor as x y z. More... | |
size_t | getNrOfOrientationSensors () const override |
Get the number of orientation sensors exposed by this device. More... | |
yarp::dev::MAS_status | getOrientationSensorStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getOrientationSensorName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getOrientationSensorFrameName (size_t sens_index, std::string &frameName) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getOrientationSensorMeasureAsRollPitchYaw (size_t sens_index, yarp::sig::Vector &rpy, double ×tamp) const override |
Get the last reading of the orientation sensor as roll pitch yaw. More... | |
size_t | getNrOfTemperatureSensors () const override |
Get the number of temperature sensors exposed by this device. More... | |
yarp::dev::MAS_status | getTemperatureSensorStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getTemperatureSensorName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getTemperatureSensorFrameName (size_t sens_index, std::string &frameName) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getTemperatureSensorMeasure (size_t sens_index, double &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
bool | getTemperatureSensorMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getNrOfSixAxisForceTorqueSensors () const override |
Get the number of six axis force torque sensors exposed by this device. More... | |
yarp::dev::MAS_status | getSixAxisForceTorqueSensorStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getSixAxisForceTorqueSensorName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getSixAxisForceTorqueSensorFrameName (size_t sens_index, std::string &frame) const override |
Get the name of the frame of the specified sensor. More... | |
bool | getSixAxisForceTorqueSensorMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getNrOfContactLoadCellArrays () const override |
Get the number of contact load cell array exposed by this device. More... | |
yarp::dev::MAS_status | getContactLoadCellArrayStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getContactLoadCellArrayName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getContactLoadCellArrayMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getContactLoadCellArraySize (size_t sens_index) const override |
Get the size of the specified contact load cell array. More... | |
size_t | getNrOfEncoderArrays () const override |
Get the number of encoder arrays exposed by this device. More... | |
yarp::dev::MAS_status | getEncoderArrayStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getEncoderArrayName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getEncoderArrayMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getEncoderArraySize (size_t sens_index) const override |
Get the size of the specified encoder array. More... | |
size_t | getNrOfSkinPatches () const override |
Get the number of skin patches exposed by this device. More... | |
yarp::dev::MAS_status | getSkinPatchStatus (size_t sens_index) const override |
Get the status of the specified sensor. More... | |
bool | getSkinPatchName (size_t sens_index, std::string &name) const override |
Get the name of the specified sensor. More... | |
bool | getSkinPatchMeasure (size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override |
Get the last reading of the specified sensor. More... | |
size_t | getSkinPatchSize (size_t sens_index) const override |
Get the size of the specified skin patch. More... | |
![]() | |
~DeviceDriver () override=default | |
Destructor. More... | |
template<class T > | |
bool | view (T *&x) |
Get an interface to the device driver. More... | |
virtual DeviceDriver * | getImplementation () |
Some drivers are bureaucrats, pointing at others. More... | |
![]() | |
virtual | ~IConfig () |
Destructor. More... | |
virtual bool | configure (Searchable &config) |
Change online parameters. More... | |
![]() | |
virtual | ~IThreeAxisGyroscopes () |
![]() | |
virtual | ~IThreeAxisLinearAccelerometers () |
![]() | |
virtual | ~IThreeAxisMagnetometers () |
![]() | |
virtual | ~IPositionSensors () |
![]() | |
virtual | ~IOrientationSensors () |
![]() | |
virtual | ~ITemperatureSensors () |
![]() | |
virtual | ~ISixAxisForceTorqueSensors () |
![]() | |
virtual | ~IContactLoadCellArrays () |
![]() | |
virtual | ~IEncoderArrays () |
![]() | |
virtual | ~ISkinPatches () |
multipleanalogsensorsclient
: The client side of a device exposing MultipleAnalogSensors interfaces.
YARP device name |
---|
multipleanalogsensorsclient |
The parameters accepted by this device are:
Parameter name | SubParameter | Type | Units | Default Value | Required | Description | Notes |
---|---|---|---|---|---|---|---|
remote | - | string | - | - | Yes | Prefix of the ports to which to connect, opened by MultipleAnalogSensorsServer device. | |
local | - | string | - | - | Yes | Port prefix of the ports opened by this device. | |
timeout | - | double | seconds | 0.01 | No | Timeout after which the device reports an error if no measurement was received. | |
externalConnection | - | bool | - | false | No | If set to true, the connection to the rpc port of the MAS server is skipped and it is possible to connect to the data source externally after being opened | Use case: e.g yarpdataplayer source. Note that with this configuration some information like sensor name, frame name and sensor number will be not available. |
Definition at line 54 of file MultipleAnalogSensorsClient.h.
|
overridevirtual |
Close the DeviceDriver.
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 141 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getContactLoadCellArrayMeasure()-1). |
[out] | out | The requested measure. The vector should be getContactLoadCellArrayMeasure(sens_index)-dimensional. The measure is expressed in Newton. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IContactLoadCellArrays.
Definition at line 535 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::IContactLoadCellArrays.
Definition at line 530 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the size of the specified contact load cell array.
Implements yarp::dev::IContactLoadCellArrays.
Definition at line 541 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::IContactLoadCellArrays.
Definition at line 525 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfEncoderArrays()-1). |
[out] | out | The requested measure. The vector should be getEncoderArraySize(sens_index)-dimensional. The measure is expressed in Newton. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IEncoderArrays.
Definition at line 563 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::IEncoderArrays.
Definition at line 558 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the size of the specified encoder array.
Implements yarp::dev::IEncoderArrays.
Definition at line 569 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::IEncoderArrays.
Definition at line 553 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of contact load cell array exposed by this device.
Implements yarp::dev::IContactLoadCellArrays.
Definition at line 519 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of encoder arrays exposed by this device.
Implements yarp::dev::IEncoderArrays.
Definition at line 547 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of orientation sensors exposed by this device.
Implements yarp::dev::IOrientationSensors.
Definition at line 404 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of position sensors exposed by this device.
Implements yarp::dev::IPositionSensors.
Definition at line 431 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of six axis force torque sensors exposed by this device.
Implements yarp::dev::ISixAxisForceTorqueSensors.
Definition at line 492 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of skin patches exposed by this device.
Implements yarp::dev::ISkinPatches.
Definition at line 575 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of temperature sensors exposed by this device.
Implements yarp::dev::ITemperatureSensors.
Definition at line 457 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of three axis gyroscopes exposed by this sensor.
Implements yarp::dev::IThreeAxisGyroscopes.
Definition at line 323 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of three axis linear accelerometers exposed by this device.
Implements yarp::dev::IThreeAxisLinearAccelerometers.
Definition at line 350 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the number of magnetometers exposed by this device.
Implements yarp::dev::IThreeAxisMagnetometers.
Definition at line 377 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
Implements yarp::dev::IOrientationSensors.
Definition at line 420 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the orientation sensor as roll pitch yaw.
If is the lab or surface fixed frame, and
is the sensor-fixed frame, this methods returns the angles
such that
with
,
and
where is the rotation that left-multiplied by a 3d column vector expressed in
it returns it expressed in
.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfOrientationSensors()-1). |
[out] | out | The requested measure. The vector should be 3-dimensional. The measure is expressed in degrees . |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IOrientationSensors.
Definition at line 425 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::IOrientationSensors.
Definition at line 415 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::IOrientationSensors.
Definition at line 410 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
Implements yarp::dev::IPositionSensors.
Definition at line 447 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the position sensor as x y z.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfPositionSensors()-1). |
[out] | out | The requested measure. The vector should be 3-dimensional. The measure is expressed in meters. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IPositionSensors.
Definition at line 452 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::IPositionSensors.
Definition at line 442 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::IPositionSensors.
Definition at line 437 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
Implements yarp::dev::ISixAxisForceTorqueSensors.
Definition at line 508 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfSixAxisForceTorqueSensors()-1). |
[out] | out | The requested measure. The vector should be 6-dimensional. The measure is expressed in Newton for the first three elements, Newton Meters for the last three elements. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::ISixAxisForceTorqueSensors.
Definition at line 513 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::ISixAxisForceTorqueSensors.
Definition at line 503 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::ISixAxisForceTorqueSensors.
Definition at line 498 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfSkinPatches()-1). |
[out] | out | The requested measure. The vector should be getNrOfSkinPatches(sens_index)-dimensional. The measure is expressed in implementation-specific unit of measure. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::ISkinPatches.
Definition at line 591 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::ISkinPatches.
Definition at line 586 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the size of the specified skin patch.
Implements yarp::dev::ISkinPatches.
Definition at line 597 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::ISkinPatches.
Definition at line 581 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
Implements yarp::dev::ITemperatureSensors.
Definition at line 473 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
TODO(traversaro) : make the method swig-friendly
Implements yarp::dev::ITemperatureSensors.
Definition at line 484 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfTemperatureSensors()-1). |
[out] | out | The requested measure. The vector should be 1-dimensional. The measure is expressed in celsius degrees . |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::ITemperatureSensors.
Definition at line 478 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::ITemperatureSensors.
Definition at line 468 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::ITemperatureSensors.
Definition at line 463 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfThreeAxisGyroscopes()-1). |
Implements yarp::dev::IThreeAxisGyroscopes.
Definition at line 339 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the gyroscope.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfThreeAxisGyroscopes()-1). |
[out] | out | The requested measure. The vector should be 3-dimensional. The measure is expressed in degrees/seconds. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IThreeAxisGyroscopes.
Definition at line 344 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfThreeAxisGyroscopes()-1). |
Implements yarp::dev::IThreeAxisGyroscopes.
Definition at line 334 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfThreeAxisGyroscopes()-1). |
Implements yarp::dev::IThreeAxisGyroscopes.
Definition at line 329 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
Implements yarp::dev::IThreeAxisLinearAccelerometers.
Definition at line 366 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfThreeAxisLinearAccelerometers()-1). |
[out] | out | The requested measure. The vector should be 3-dimensional. The measure is expressed in meters^2/seconds. |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IThreeAxisLinearAccelerometers.
Definition at line 371 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::IThreeAxisLinearAccelerometers.
Definition at line 361 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::IThreeAxisLinearAccelerometers.
Definition at line 356 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the frame of the specified sensor.
Implements yarp::dev::IThreeAxisMagnetometers.
Definition at line 393 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the last reading of the specified sensor.
[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfThreeAxisMagnetometers()-1). |
[out] | out | The requested measure. The vector should be 3-dimensional. The measure is expressed in tesla . |
[out] | timestamp | The timestamp of the requested measure, expressed in seconds. |
Implements yarp::dev::IThreeAxisMagnetometers.
Definition at line 398 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the name of the specified sensor.
Implements yarp::dev::IThreeAxisMagnetometers.
Definition at line 388 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Get the status of the specified sensor.
Implements yarp::dev::IThreeAxisMagnetometers.
Definition at line 383 of file MultipleAnalogSensorsClient.cpp.
|
overridevirtual |
Open the DeviceDriver.
config | is a list of parameters for the device. Which parameters are effective for your device can vary. See device invocation examples. If there is no example for your device, you can run the "yarpdev" program with the verbose flag set to probe what parameters the device is checking. If that fails too, you'll need to read the source code (please nag one of the yarp developers to add documentation for your device). |
Reimplemented from yarp::dev::DeviceDriver.
Definition at line 40 of file MultipleAnalogSensorsClient.cpp.