19#ifndef __VISUO_MOTOR_UTILS__
20#define __VISUO_MOTOR_UTILS__
22#include <yarp/os/ResourceFinder.h>
23#include <yarp/os/RpcClient.h>
24#include <yarp/os/PortInfo.h>
25#include <yarp/os/PortReport.h>
26#include <yarp/os/Vocab.h>
27#include <yarp/sig/Vector.h>
36#define ARM_MOST_SUITED -2
39using namespace yarp::os;
40using namespace yarp::sig;
50 :scheduleUpdate(false)
52 this->setReporter(*
this);
57 if(info.created && !info.incoming)
67 bool setAction(
const string &act_name,
const Bottle *trajectory);
68 bool getAction(
const string &act_name, Bottle *trajectory);
91 void set(
const Vector &stereo)
93 lock_guard<mutex> lck(mtx);
94 this->resize(stereo.size());
95 for(
size_t i=0; i<stereo.size(); i++)
96 this->
data()[i]=stereo[i];
102 lock_guard<mutex> lck(mtx);
103 stereo.resize(this->size());
104 for(
size_t i=0; i<this->size(); i++)
105 stereo[i]= this->
data()[i];
123 string name=rf.find(
"name").asString();
StereoTarget stereo_target
ObjectPropertiesCollectorPort port_opc
Initializer(ResourceFinder &rf)
bool getStereoPosition(const string &obj_name, Vector &stereo)
bool getKinematicOffsets(const string &obj_name, Vector *kinematic_offset)
bool getTableHeight(double &table_height)
bool setTableHeight(const double table_height)
bool getCartesianPosition(const string &obj_name, Vector &x)
void report(const PortInfo &info)
bool getAction(const string &act_name, Bottle *trajectory)
bool setKinematicOffsets(const string &obj_name, const Vector *kinematic_offset)
bool setAction(const string &act_name, const Bottle *trajectory)
ObjectPropertiesCollectorPort()
void set(const Vector &stereo)