19#include <yarp/os/Network.h>
20#include <yarp/os/Time.h>
21#include <yarp/os/Log.h>
22#include <yarp/os/LogStream.h>
23#include <yarp/os/BufferedPort.h>
24#include <yarp/sig/Vector.h>
25#include <yarp/math/Math.h>
27#include <yarp/dev/ControlBoardInterfaces.h>
28#include <yarp/dev/PolyDriver.h>
29#include <yarp/os/PeriodicThread.h>
30#include <yarp/os/Thread.h>
41using namespace yarp::os;
42using namespace yarp::sig;
44using namespace yarp::math;
46#define VCTP_TIME yarp::os::createVocab32('t','i','m','e')
47#define VCTP_OFFSET yarp::os::createVocab32('o','f','f')
48#define VCTP_CMD_NOW yarp::os::createVocab32('c','t','p','n')
49#define VCTP_CMD_QUEUE yarp::os::createVocab32('c','t','p','q')
50#define VCTP_CMD_FILE yarp::os::createVocab32('c','t','p','f')
51#define VCTP_POSITION yarp::os::createVocab32('p','o','s')
52#define VCTP_WAIT yarp::os::createVocab32('w','a','i','t')
56#define ACTION_RUNNING 2
90 bool openFile(
string filename,
int n_joints);
102 Property drvOptions_ll;
104 IPositionControl *ipos_ll;
105 IPositionDirect *iposdir_ll;
106 IPidControl *ipid_ll;
107 IControlMode *icmd_ll;
109 IMotorEncoders *imotenc_ll;
std::deque< action_struct >::iterator action_it
bool parseCommandLineFixTime(const char *command_line, int line, double fixTime, int n_joints)
bool parseCommandLine(const char *command_line, int line, int n_joints)
std::deque< action_struct > action_vector
bool openFile(string filename, int n_joints)
action_struct & operator=(const action_struct &as)
std::map< int, int > joints_map
bool setPosition(int j, double ref)
bool setControlMode(const int j, const int mode)
bool getEncoder(int j, double *v)
bool configure(const Property &copt)
bool positionMove(int j, double ref)