10 #ifndef YARP_DEV_MULTIPLEANALOGSENSORSSERVER_MULTIPLEANALOGSENSORSSERVER_H
11 #define YARP_DEV_MULTIPLEANALOGSENSORSSERVER_MULTIPLEANALOGSENSORSSERVER_H
49 double m_periodInS{0.01};
51 std::string m_streamingPortName;
52 std::string m_RPCPortName;
60 bool m_isDeviceOwned{
false};
76 bool populateAllSensorsMetadata();
77 template<
typename Interface>
78 bool populateSensorsMetadata(Interface * wrappedDeviceInterface,
79 std::vector<SensorMetadata>& metadataVector,
const std::string& tag,
80 size_t (Interface::*getNrOfSensorsMethodPtr)()
const,
81 bool (Interface::*getNameMethodPtr)(
size_t, std::string&)
const,
82 bool (Interface::*getFrameNameMethodPtr)(
size_t, std::string&)
const);
83 template<
typename Interface>
84 bool populateSensorsMetadataNoFrameName(Interface * wrappedDeviceInterface,
85 std::vector<SensorMetadata>& metadataVector,
const std::string& tag,
86 size_t (Interface::*getNrOfSensorsMethodPtr)()
const,
87 bool (Interface::*getNameMethodPtr)(
size_t, std::string&)
const);
89 template<
typename Interface>
90 bool genericStreamData(Interface* wrappedDeviceInterface,
91 const std::vector< SensorMetadata >& metadataVector,
92 std::vector< SensorMeasurement >& streamingDataVector,
94 bool (Interface::*getMeasureMethodPtr)(
size_t,
yarp::sig::Vector&,
double&)
const);
102 bool close()
override;
Interface implemented by all device drivers.
Device interface to one or multiple arrays of encoders.
Interface for an object that can wrap/attach to to another.
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.
Device interface to one or multiple six axis force torque sensor.
Device interface to one or more groups (patches) of tactile sensors (skin).
Device interface to one or multiple temperature sensors.
Device interface to one or multiple three axis gyroscopes.
Device interface to one or multiple three axis linear accelerometers.
Device interface to one or multiple three axis magnetometers.
A container for a device driver.
An abstraction for a periodic thread.
A mini-server for network communication.
A base class for nested structures that can be searched.
An abstraction for a time stamp and/or sequence number.
MAS_status
Status of a given analog sensor exposed by a multiple analog sensors interface.