21 #ifndef _POSITIONACCURACYEXTERNALPID_H_
22 #define _POSITIONACCURACYEXTERNALPID_H_
25 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/dev/ControlBoardInterfaces.h>
27 #include <yarp/dev/PolyDriver.h>
29 #include <iCub/ctrl/pids.h>
67 virtual bool setup(yarp::os::Property& property);
69 virtual void tearDown();
75 void setMode(
int desired_mode);
76 void saveToFile(std::string filename, yarp::os::Bottle &b);
79 std::string m_robotName;
80 std::string m_partName;
88 yarp::os::Bottle m_dataToSave;
90 yarp::dev::PolyDriver *dd;
91 yarp::dev::IPositionControl *ipos;
92 yarp::dev::IControlMode *icmd;
93 yarp::dev::IInteractionMode *iimd;
94 yarp::dev::IEncoders *ienc;
95 yarp::dev::IPositionDirect *idir;
96 yarp::dev::IPWMControl *ipwm;
98 iCub::ctrl::parallelPID *ppid;
101 double m_pospid_vdown;
106 std::string m_requested_filename;
107 double m_home_tolerance;
108 double m_step_duration;
This tests checks the response of the system to a position step, sending directly PWM commands to a j...