21 #ifndef _OPENLOOPCONSISTENCY_H_
22 #define _OPENLOOPCONSISTENCY_H_
25 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/dev/ControlBoardInterfaces.h>
27 #include <yarp/dev/PolyDriver.h>
29 class OpenLoopConsistency :
public yarp::robottestingframework::TestCase {
31 OpenLoopConsistency();
32 virtual ~OpenLoopConsistency();
34 virtual bool setup(yarp::os::Property& property);
36 virtual void tearDown();
42 void setMode(
int desired_control_mode, yarp::dev::InteractionModeEnum desired_interaction_mode);
43 void verifyMode(
int desired_control_mode, yarp::dev::InteractionModeEnum desired_interaction_mode, std::string title);
45 void setRefOpenloop(
double value);
46 void verifyRefOpenloop(
double value, std::string title);
47 void verifyOutputEqual(
double value, std::string title);
48 void verifyOutputDiff(
double value, std::string title);
51 std::string robotName;
65 yarp::dev::PolyDriver *dd;
66 yarp::dev::IPositionControl *ipos;
67 yarp::dev::IAmplifierControl *iamp;
68 yarp::dev::IControlMode *icmd;
69 yarp::dev::IInteractionMode *iimd;
70 yarp::dev::IEncoders *ienc;
71 yarp::dev::IPWMControl *ipwm;
77 double prevcurr_single;
79 double* prevcurr_some;