6#ifndef YARP_DEV_ANALOGWRAPPER_ANALOGWRAPPER_H
7#define YARP_DEV_ANALOGWRAPPER_ANALOGWRAPPER_H
35#define DEFAULT_THREAD_PERIOD 20
137 bool close()
override;
154 std::string streamingPortName;
155 std::string rpcPortName;
157 std::vector<AnalogPortEntry> analogPorts;
158 std::vector<AnalogServerHandler*> handlers;
162 std::string sensorId;
166 void removeHandlers();
169 bool createPort(
const char* name,
int rate=20);
171 bool createPorts(
const std::vector<AnalogPortEntry>& _analogPorts,
int rate=20);
#define DEFAULT_THREAD_PERIOD
contains the definition of a Vector type
A yarp port that output data read from an analog sensor.
Handler of the rpc port related to an analog sensor.
analogServer deprecated: Device that expose an AnalogSensor (using the IAnalogSensor interface) on th...
void threadRelease() override
Release method.
void attach(yarp::dev::IAnalogSensor *s)
bool threadInit() override
Initialization method.
~AnalogWrapper() override
AnalogWrapper(AnalogWrapper &&)=delete
void run() override
Loop function.
bool open(yarp::os::Searchable ¶ms) override
Open the DeviceDriver.
AnalogWrapper(const AnalogWrapper &)=delete
bool close() override
Close the DeviceDriver.
AnalogWrapper & operator=(AnalogWrapper &&)=delete
bool attachAll(const yarp::dev::PolyDriverList &p) override
Specify which analog sensor this thread has to read from.
bool detachAll() override
Detach the object (you must have first called attach).
yarp::os::Bottle getOptions()
AnalogWrapper & operator=(const AnalogWrapper &)=delete
Interface implemented by all device drivers.
A generic interface to sensors (gyro, a/d converters).
Interface for an object that can wrap/attach to to another.
A simple collection of objects that can be described and transmitted in a portable way.
An abstraction for a periodic thread.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.