|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
55 bool close()
override;
60 bool calibrate(
int ch,
double v)
override;
95 bool genericGetSensorName(
size_t sens_index, std::string &name)
const;
96 bool genericGetFrameName(
size_t sens_index, std::string &frameName)
const;
98 bool threadInit()
override;
106 unsigned int nchannels;
109 std::string m_sensorName;
110 std::string m_frameName;
bool getOrientationSensorFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame of the specified sensor.
A generic interface to sensors – gyro, a/d converters etc.
A base class for nested structures that can be searched.
Interface implemented by all device drivers.
Device interface to one or multiple three axis magnetometers.
Device interface to one or multiple three axis gyroscopes.
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algori...
size_t getNrOfThreeAxisGyroscopes() const override
Get the number of three axis gyroscopes exposed by this sensor.
fakeIMU & operator=(const fakeIMU &)=delete
bool getThreeAxisMagnetometerMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get the last reading of the specified sensor.
yarp::os::Stamp getLastInputStamp() override
Return the time stamp relative to the last acquisition.
bool getThreeAxisGyroscopeFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame of the specified sensor.
size_t getNrOfOrientationSensors() const override
Get the number of orientation sensors exposed by this device.
bool close() override
Close the DeviceDriver.
bool calibrate(int ch, double v) override
Calibrate the sensor, single channel.
bool getThreeAxisGyroscopeMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get the last reading of the gyroscope.
fakeIMU & operator=(fakeIMU &&)=delete
fakeIMU(fakeIMU &&)=delete
bool getThreeAxisLinearAccelerometerName(size_t sens_index, std::string &name) const override
Get the name of the specified sensor.
size_t getNrOfThreeAxisMagnetometers() const override
Get the number of magnetometers exposed by this device.
bool read(yarp::sig::Vector &out) override
Read a vector from the sensor.
fakeIMU()
This device implements a fake analog sensor emulating an IMU.
Device interface to one or multiple three axis linear accelerometers.
yarp::dev::MAS_status getOrientationSensorStatus(size_t sens_index) const override
Get the status of the specified sensor.
bool getThreeAxisGyroscopeName(size_t sens_index, std::string &name) const override
Get the name of the specified sensor.
bool getThreeAxisMagnetometerName(size_t sens_index, std::string &name) const override
Get the name of the specified sensor.
bool getThreeAxisLinearAccelerometerMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get the last reading of the specified sensor.
An abstraction for a periodic thread.
size_t getNrOfThreeAxisLinearAccelerometers() const override
Get the number of three axis linear accelerometers exposed by this device.
An abstraction for a time stamp and/or sequence number.
fakeIMU(const fakeIMU &)=delete
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::MAS_status getThreeAxisGyroscopeStatus(size_t sens_index) const override
Get the status of the specified sensor.
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.
bool getThreeAxisLinearAccelerometerFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame of the specified sensor.
MAS_status
Status of a given analog sensor exposed by a multiple analog sensors interface.
yarp::dev::MAS_status getThreeAxisLinearAccelerometerStatus(size_t sens_index) const override
Get the status of the specified sensor.
bool getThreeAxisMagnetometerFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame of the specified sensor.
fakeIMU : fake device implementing the device interface typically implemented by an Inertial Measurem...
bool getChannels(int *nc) override
Get the number of channels of the sensor.
bool getOrientationSensorName(size_t sens_index, std::string &name) const override
Get the name of the specified sensor.
yarp::dev::MAS_status getThreeAxisMagnetometerStatus(size_t sens_index) const override
Get the status of the specified sensor.