46 double m_periodInS{0.01};
48 std::string m_streamingPortName;
49 std::string m_RPCPortName;
57 bool m_isDeviceOwned{
false};
73 bool populateAllSensorsMetadata();
74 template<
typename Interface>
75 bool populateSensorsMetadata(Interface * wrappedDeviceInterface,
76 std::vector<SensorMetadata>& metadataVector,
const std::string& tag,
77 size_t (Interface::*getNrOfSensorsMethodPtr)()
const,
78 bool (Interface::*getNameMethodPtr)(
size_t, std::string&)
const,
79 bool (Interface::*getFrameNameMethodPtr)(
size_t, std::string&)
const);
80 template<
typename Interface>
81 bool populateSensorsMetadataNoFrameName(Interface * wrappedDeviceInterface,
82 std::vector<SensorMetadata>& metadataVector,
const std::string& tag,
83 size_t (Interface::*getNrOfSensorsMethodPtr)()
const,
84 bool (Interface::*getNameMethodPtr)(
size_t, std::string&)
const);
88 template<
typename Interface>
89 bool resizeMeasureVectors(Interface* wrappedDeviceInterface,
90 const std::vector< SensorMetadata >& metadataVector,
91 std::vector< SensorMeasurement >& streamingDataVector,
92 size_t (Interface::*getMeasureSizePtr)(
size_t)
const);
93 template<
typename Interface>
94 bool resizeMeasureVectors(Interface* wrappedDeviceInterface,
95 const std::vector< SensorMetadata >& metadataVector,
96 std::vector< SensorMeasurement >& streamingDataVector,
102 template<
typename Interface>
103 bool genericStreamData(Interface* wrappedDeviceInterface,
104 const std::vector< SensorMetadata >& metadataVector,
105 std::vector< SensorMeasurement >& streamingDataVector,
107 bool (Interface::*getMeasureMethodPtr)(
size_t,
yarp::sig::Vector&,
double&)
const,
108 const char* sensorType);
117 bool close()
override;