10#ifndef __SKIN_MESH_CLIENT_H__
11#define __SKIN_MESH_CLIENT_H__
17#include <yarp/os/Log.h>
18#include <yarp/os/Property.h>
19#include <yarp/dev/ControlBoardInterfaces.h>
20#include <yarp/dev/PolyDriver.h>
21#include <yarp/dev/PolyDriverList.h>
22#include <yarp/dev/CanBusInterface.h>
23#include <yarp/sig/Vector.h>
25#include <yarp/os/RFModule.h>
26#include <yarp/dev/MultipleAnalogSensorsInterfaces.h>
27#include <yarp/dev/IMultipleWrapper.h>
45using namespace yarp::os;
72 yarp::os::Property m_config;
73 yarp::dev::PolyDriver _multipleAnalogSensorsClientDevice;
74 yarp::dev::PolyDriver _multipleAnalogSensorsRemapperDevice;
79 } remappedMASInterfaces;
81 bool configureFromSearchable(yarp::os::Searchable& config);
82 bool configureSkinClient(yarp::os::Searchable& config,
const std::string& localPrefix);
83 bool readSkinPatches(yarp::sig::Vector& skinValue)
const;
99 virtual bool configure(yarp::os::ResourceFinder &rf)
override;
100 virtual bool close()
override;
106 std::lock_guard<std::mutex> lck(
mtx);
113 void eval(
unsigned char *image)
115 std::lock_guard<std::mutex> lck(
mtx);
122 sensor[t]->eval_light(image);
132 void draw(
unsigned char *image)
void draw(unsigned char *image)
SkinMeshClient(Searchable &config, int period)
BufferedPort< Bottle > skin_port
TouchSensor * sensor[MAX_SENSOR_NUM]
static const int MAX_SENSOR_NUM
virtual bool configure(yarp::os::ResourceFinder &rf) override
void eval(unsigned char *image)
bool m_externalConnection
std::vector< unsigned char > defaultColor
virtual double getPeriod() override
void resize(int width, int height)
double m_lastNoSkinPatchWarningTime
yarp::dev::ISkinPatches * iskinPatchesSensors
virtual bool updateModule() override
BufferedPort< Bottle > skin_port_virtual
yarp::dev::IMultipleWrapper * imultwrap
virtual bool close() override