21 #ifndef _OPTICALENCODERSDRIFT_H_
22 #define _OPTICALENCODERSDRIFT_H_
25 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/dev/ControlBoardInterfaces.h>
27 #include <yarp/dev/PolyDriver.h>
28 #include <yarp/sig/Vector.h>
29 #include <yarp/os/Bottle.h>
30 #include <yarp/sig/Matrix.h>
67 virtual bool setup(yarp::os::Property& property);
69 virtual void tearDown();
74 void setMode(
int desired_mode);
75 bool saveToFile(
const std::string &filename,
const yarp::os::Bottle &b);
78 std::string robotName;
80 yarp::sig::Vector jointsList;
86 yarp::dev::PolyDriver *dd;
87 yarp::dev::IPositionControl *ipos;
88 yarp::dev::IControlMode *icmd;
89 yarp::dev::IInteractionMode *iimd;
90 yarp::dev::IEncoders *ienc;
91 yarp::dev::IMotorEncoders *imot;
93 yarp::sig::Vector enc_jnt;
94 yarp::sig::Vector enc_mot;
95 yarp::sig::Vector home_enc_mot;
96 yarp::sig::Vector end_enc_mot;
97 yarp::sig::Vector err_enc_mot;
100 yarp::sig::Vector max;
101 yarp::sig::Vector min;
102 yarp::sig::Vector home;
103 yarp::sig::Vector speed;
This tests checks if the relative encoders measurements are consistent over time, by performing cycli...