Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algorithms. More...
#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
Public Member Functions | |
virtual size_t | getNrOfOrientationSensors () const =0 |
Get the number of orientation sensors exposed by this device. More... | |
virtual yarp::dev::MAS_status | getOrientationSensorStatus (size_t sens_index) const =0 |
Get the status of the specified sensor. More... | |
virtual bool | getOrientationSensorName (size_t sens_index, std::string &name) const =0 |
Get the name of the specified sensor. More... | |
virtual bool | getOrientationSensorFrameName (size_t sens_index, std::string &frameName) const =0 |
Get the name of the frame of the specified sensor. More... | |
virtual bool | getOrientationSensorMeasureAsRollPitchYaw (size_t sens_index, yarp::sig::Vector &rpy, double ×tamp) const =0 |
Get the last reading of the orientation sensor as roll pitch yaw. More... | |
virtual | ~IOrientationSensors () |
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algorithms.
The device returns the relative orientation between a lab or surface-fixed frame and a frame rigidly attached to the sensor.
The definition of the lab or surface-fixed frame is sensor-specific.
Sensor Tag |
---|
OrientationSensors |
Definition at line 273 of file MultipleAnalogSensorsInterfaces.h.
|
inlinevirtual |
Definition at line 351 of file MultipleAnalogSensorsInterfaces.h.
|
pure virtual |
Get the number of orientation sensors exposed by this device.
Implemented in MultipleAnalogSensorsRemapper, MultipleAnalogSensorsClient, BoschIMU, and fakeIMU.
|
pure virtual |
Get the name of the frame of the specified sensor.
Implemented in MultipleAnalogSensorsRemapper, MultipleAnalogSensorsClient, BoschIMU, and fakeIMU.
|
pure virtual |
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. |
Implemented in MultipleAnalogSensorsRemapper, MultipleAnalogSensorsClient, BoschIMU, and fakeIMU.
|
pure virtual |
Get the name of the specified sensor.
Implemented in MultipleAnalogSensorsRemapper, MultipleAnalogSensorsClient, BoschIMU, and fakeIMU.
|
pure virtual |
Get the status of the specified sensor.
Implemented in MultipleAnalogSensorsRemapper, MultipleAnalogSensorsClient, BoschIMU, and fakeIMU.