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>
41 using namespace yarp::os;
42 using namespace yarp::sig;
44 using 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')
55 #define ACTION_START 1
56 #define ACTION_RUNNING 2
58 #define ACTION_RESET 4
90 bool openFile(
string filename,
int n_joints);
91 bool parseCommandLineFixTime(
const char* command_line,
int line,
double fixTime,
int n_joints);
92 bool parseCommandLine(
const char* command_line,
int line,
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;
117 bool configure(
const Property &copt);
120 bool setControlMode(
const int j,
const int mode);
121 bool setPosition(
int j,
double ref);
122 bool getEncoder(
int j,
double *v);
123 bool positionMove(
int j,
double ref);
std::deque< action_struct >::iterator action_it
std::deque< action_struct > action_vector
std::map< int, int > joints_map
bool print(const pc104Data &pc104data)