21#ifndef __EMBOBJSKIN_H__
22#define __EMBOBJSKIN_H__
28#include <yarp/os/PeriodicThread.h>
29#include <yarp/dev/ControlBoardInterfaces.h>
30#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
31#include <yarp/dev/PolyDriver.h>
43using namespace yarp::os;
45using namespace yarp::os::impl;
46using namespace yarp::sig;
87 mutable std::mutex
mtx;
107 if(
_skCfg.numOfPatches == 1)
116 std::string boardInfo()
const;
119 eOmn_serv_parameter_t ethservice;
124 bool _isDiagnosticPresent;
128 std::vector<iCub::skin::diagnostics::DetectedError> errors;
136 virtual bool open(yarp::os::Searchable& config);
137 virtual bool close();
145 virtual bool getSkinPatchName(
size_t sens_index, std::string &name)
const override;
147 virtual bool getSkinPatchMeasure(
size_t sens_index, yarp::sig::Vector&
out,
double& timestamp)
const override;
154 virtual bool update(eOprotID32_t id32,
double timestamp,
void *rxdata);
bool fromConfig(yarp::os::Searchable &config)
eth::AbstractEthResource * res
SkinConfigReader _cfgReader
virtual bool getSkinPatchMeasure(size_t sens_index, yarp::sig::Vector &out, double ×tamp) const override
Get the last readings of the sensors related to the specified patch.
SkinBoardCfgParam _brdCfg
virtual bool initialised()
eOprotIndex_t convertIdPatch2IndexNv(int idPatch)
bool initWithSpecialConfig(yarp::os::Searchable &config)
SkinTriangleCfgParam _triangCfg
virtual bool open(yarp::os::Searchable &config)
virtual eth::iethresType_t type()
virtual size_t getNrOfSkinPatches() const override
Get the number of skin patches exposed by THIS device.
virtual bool update(eOprotID32_t id32, double timestamp, void *rxdata)
virtual MAS_status getSkinPatchStatus(size_t sens_index) const override
Get the status of the specified patch.
bool configPeriodicMessage(void)
virtual size_t getSkinPatchSize(size_t sens_index) const override
Get the size of the specified skin patch, i.e., the number of taxels (sensors) it contains.
virtual bool getSkinPatchName(size_t sens_index, std::string &name) const override
Get the name of the specified patch.
eth::TheEthManager * ethManager
std::vector< SkinPatchInfo > patchInfoList
std::optional< size_t > checkCardAddrIsInList(int cardAddr)
std::vector< int > cardAddrList