9#ifndef _EMBOBJMULTIPLEFTSENSORS_H_
10#define _EMBOBJMULTIPLEFTSENSORS_H_
12#include <yarp/dev/DeviceDriver.h>
13#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
14#include <yarp/sig/Vector.h>
17#include <shared_mutex>
26class embObjMultipleFTsensors;
34 yarp::sig::Vector
data_{0, 0, 0, 0, 0, 0};
54 bool open(yarp::os::Searchable& config);
60 virtual bool update(eOprotID32_t id32,
double timestamp,
void* rxdata);
78 std::shared_ptr<yarp::dev::embObjDevPrivData>
device_;
91 std::vector<yarp::dev::MAS_status>
masStatus_{MAS_WAITING_FOR_FIRST_READ, MAS_WAITING_FOR_FIRST_READ, MAS_WAITING_FOR_FIRST_READ, MAS_WAITING_FOR_FIRST_READ};
eOmeas_temperature_t data_
std::vector< yarp::dev::MAS_status > masStatus_
virtual bool initialised()
virtual bool getTemperatureSensorFrameName(size_t sensorindex, std::string &frameName) const override
bool checkUpdateTimeout(eOprotID32_t id32, eOabstime_t current)
virtual yarp::dev::MAS_status getSixAxisForceTorqueSensorStatus(size_t sensorindex) const override
bool initRegulars(ServiceParserMultipleFt &parser, eth::AbstractEthResource *deviceRes)
bool open(yarp::os::Searchable &config)
static constexpr bool useBoardTimeFlag_
std::map< eOprotID32_t, FtData > ftSensorsData_
bool sendStart2boards(ServiceParserMultipleFt &parser, eth::AbstractEthResource *deviceRes)
virtual eth::iethresType_t type()
virtual bool getTemperatureSensorMeasure(size_t sensorindex, double &out, double ×tamp) const override
virtual size_t getNrOfTemperatureSensors() const override
double calculateBoardTime(eOabstime_t current)
virtual bool getSixAxisForceTorqueSensorFrameName(size_t sensorindex, std::string &frameName) const override
static constexpr bool checkUpdateTimeoutFlag_
virtual bool update(eOprotID32_t id32, double timestamp, void *rxdata)
embObjMultipleFTsensors()
std::map< eOprotID32_t, TemperatureData > temperaturesensordata_
double firstYarpTimestamp_
virtual size_t getNrOfSixAxisForceTorqueSensors() const override
static constexpr eOabstime_t updateTimeout_
bool sendConfig2boards(ServiceParserMultipleFt &parser, eth::AbstractEthResource *deviceRes)
virtual bool getSixAxisForceTorqueSensorMeasure(size_t sensorindex, yarp::sig::Vector &out, double ×tamp) const override
std::shared_ptr< yarp::dev::embObjDevPrivData > device_
eOabstime_t firstCanTimestamp_
std::map< eOprotID32_t, eOabstime_t > timeoutUpdate_
virtual bool getSixAxisForceTorqueSensorName(size_t sensorindex, std::string &name) const override
~embObjMultipleFTsensors()
virtual yarp::dev::MAS_status getTemperatureSensorStatus(size_t sensorindex) const override
virtual bool getTemperatureSensorName(size_t sensorindex, std::string &name) const override
static constexpr int ftChannels_