6#ifndef YARP_DEVICE_FAKE_POSITIONSENSOR
7#define YARP_DEVICE_FAKE_POSITIONSENSOR
36 mutable std::mutex m_mutex;
37 unsigned int m_channelsNum;
41 std::string m_name =
"mySensor";
42 std::string m_framename =
"myFrame";
44 double m_timestamp = 0.0;
56 std::vector<myfakesensor> m_position_sensors;
57 std::vector<myfakesensor> m_orientation_sensors;
65 bool close()
override;
This class is the parameters parser for class FakePositionSensor.
fakePositionSensor: Fake position sensor device for testing purpose and reference for new similar dev...
bool getOrientationSensorFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame of the specified sensor.
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
yarp::dev::MAS_status getPositionSensorStatus(size_t sens_index) const override
Get the status of the specified sensor.
bool getOrientationSensorMeasureAsRollPitchYaw(size_t sens_index, yarp::sig::Vector &xyz, double ×tamp) const override
Get the last reading of the orientation sensor as roll pitch yaw.
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.
yarp::dev::MAS_status getOrientationSensorStatus(size_t sens_index) const override
Get the status of the specified sensor.
void run() override
Loop function.
bool getPositionSensorFrameName(size_t sens_index, std::string &frameName) const override
Get the name of the frame of the specified sensor.
bool threadInit() override
Initialization method.
size_t getNrOfOrientationSensors() const override
Get the number of orientation sensors exposed by this device.
void threadRelease() override
Release method.
bool getPositionSensorName(size_t sens_index, std::string &name) const override
Get the name of the specified sensor.
size_t getNrOfPositionSensors() const override
Get the number of position sensors exposed by this device.
bool getOrientationSensorName(size_t sens_index, std::string &name) const override
Get the name of the specified sensor.
Interface implemented by all device drivers.
Device interface to one or multiple orientation sensors, such as IMUs with on board estimation algori...
Device interface to one or multiple position sensors, such as UWB localization sensors.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
void resize(size_t size) override
Resize the vector.
MAS_status
Status of a given analog sensor exposed by a multiple analog sensors interface.
@ MAS_OK
The sensor is working correctly.