9 #ifndef YARP_DEVICE_FAKE_ANALOGSENSOR
10 #define YARP_DEVICE_FAKE_ANALOGSENSOR
40 unsigned int channelsNum;
51 bool close()
override;
Fake analog sensor device for testing purpose and reference for new analog devices.
bool threadInit() override
Initialization method.
void run() override
Loop function.
int calibrateChannel(int ch) override
Calibrates one single channel.
bool close() override
Close the DeviceDriver.
bool open(yarp::os::Searchable &config) override
Open the DeviceDriver.
int getChannels() override
Get the number of channels of the sensor.
int calibrateSensor() override
Calibrates the whole sensor.
int read(yarp::sig::Vector &out) override
Read a vector from the sensor.
void threadRelease() override
Release method.
int getState(int ch) override
Check the state value of a given channel.
FakeAnalogSensor(double period=0.02)
Interface implemented by all device drivers.
A generic interface to sensors (gyro, a/d converters).
An abstraction for a periodic thread.
A base class for nested structures that can be searched.