13#include <yarp/dev/DeviceDriver.h>
14#include <yarp/dev/IGenericSensor.h>
15#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
16#include <yarp/os/Stamp.h>
17#include <yarp/dev/IPreciselyTimed.h>
42 public yarp::dev::IPreciselyTimed,
44 public yarp::dev::IThreeAxisGyroscopes,
45 public yarp::dev::IThreeAxisLinearAccelerometers,
46 public yarp::dev::IThreeAxisMagnetometers,
47 public yarp::dev::IOrientationSensors
54 bool read(yarp::sig::Vector &
out)
override;
56 bool open(yarp::os::Searchable &config)
override;
57 bool calibrate(
int ch,
double v)
override;
58 bool close()
override;
225 yarp::dev::MAS_status genericGetStatus(
size_t sens_index)
const;
226 bool genericGetSensorName(
size_t sens_index, std::string &name)
const;
227 bool genericGetFrameName(
size_t sens_index, std::string &frameName)
const;
228 bool genericGetMeasure(
size_t sens_index, yarp::sig::Vector&
out,
double& timestamp,
size_t startIdx)
const;
229 void *system_resources;
231 std::string m_sensorName;
232 std::string m_frameName;
233 yarp::os::Stamp lastStamp;
xsensmtx : driver for XSens's MTx IMU unit.
bool getOrientationSensorMeasureAsRollPitchYaw(size_t sens_index, yarp::sig::Vector &rpy, double ×tamp) const override
Get orientation sensor measurements.
bool getThreeAxisGyroscopeMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get three axis gyroscope measurements.
bool getThreeAxisGyroscopeFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame in which three axis gyroscope measurements are expressed.
size_t getNrOfThreeAxisMagnetometers() const override
Get the number of three axis magnetometers in the device.
size_t getNrOfThreeAxisGyroscopes() const override
Get the number of three axis gyroscopes in the device.
yarp::dev::MAS_status getThreeAxisMagnetometerStatus(size_t sens_index) const override
Get the status of three axis magnetometer.
bool getThreeAxisLinearAccelerometerMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get three axis linear accelerometer measurements.
bool getThreeAxisMagnetometerName(size_t sens_index, std::string &name) const override
Get the name of three axis magnetometer.
size_t getNrOfThreeAxisLinearAccelerometers() const override
Get the number of three axis linear accelerometers in the device.
bool getChannels(int *nc) override
bool getThreeAxisLinearAccelerometerFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame in which three axis linear accelerometer measurements are expressed.
yarp::os::Stamp getLastInputStamp() override
bool getThreeAxisLinearAccelerometerName(size_t sens_index, std::string &name) const override
Get the name of three axis linear accelerometer.
bool read(yarp::sig::Vector &out) override
bool open(yarp::os::Searchable &config) override
bool getOrientationSensorName(size_t sens_index, std::string &name) const override
Get the name of orientation sensor.
size_t getNrOfOrientationSensors() const override
Get the number of orientation sensors in the device.
bool getThreeAxisMagnetometerMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get three axis magnetometer measurements.
bool calibrate(int ch, double v) override
yarp::dev::MAS_status getThreeAxisGyroscopeStatus(size_t sens_index) const override
Get the status of three axis gyroscope.
bool getThreeAxisGyroscopeName(size_t sens_index, std::string &name) const override
Get the name of three axis gyroscope.
XSensMTx()
Driver for XSens's MTx IMU unit.
yarp::dev::MAS_status getThreeAxisLinearAccelerometerStatus(size_t sens_index) const override
Get the status of three axis linear accelerometer.
bool getOrientationSensorFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame in which orientation sensor measurements are expressed.
bool getThreeAxisMagnetometerFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame in which three axis magnetometer measurements are expressed.
yarp::dev::MAS_status getOrientationSensorStatus(size_t sens_index) const override
Get the status of orientation sensor.
Copyright (C) 2008 RobotCub Consortium.
std::string comPortString