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