21 #ifndef _MOVEMENTREFERNCESTEST_
22 #define _MOVEMENTREFERNCESTEST_
24 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/os/Value.h>
27 #include <yarp/sig/Vector.h>
28 #include <yarp/os/Time.h>
29 #include <yarp/dev/PolyDriver.h>
30 #include <yarp/dev/ControlBoardInterfaces.h>
31 #include "yarp/robottestingframework/JointsPosMotion.h"
61 virtual bool setup(yarp::os::Property& configuration);
63 virtual void tearDown();
68 void setAndCheckControlMode(
int j,
int mode);
71 yarp::dev::PolyDriver *dd;
72 yarp::dev::IEncoders *iEncoders;
73 yarp::dev::IPositionControl *iPosition;
74 yarp::dev::IPWMControl *iPWM;
75 yarp::dev::IPositionDirect *iPosDirect;
76 yarp::dev::IControlMode *iControlMode;
77 yarp::dev::IVelocityControl *iVelocity;
82 std::string robotName;
87 yarp::robottestingframework::jointsPosMotion *jPosMotion;
88 yarp::sig::Vector jointsList;
91 yarp::sig::Vector targetPos;
92 yarp::sig::Vector homePos;
93 yarp::sig::Vector refVel;
94 yarp::sig::Vector refAcc;
Check IPositionControl, IVelocityControl, IPWMControl, IPositionDirect.