21 #ifndef _POSITIONACCURACY_H_
22 #define _POSITIONACCURACY_H_
25 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/dev/ControlBoardInterfaces.h>
27 #include <yarp/dev/PolyDriver.h>
60 virtual bool setup(yarp::os::Property& property);
62 virtual void tearDown();
68 void setMode(
int desired_mode);
69 void saveToFile(std::string filename, yarp::os::Bottle &b);
72 std::string m_robotName;
73 std::string m_partName;
81 yarp::os::Bottle m_dataToSave;
83 yarp::dev::PolyDriver *dd;
84 yarp::dev::IPositionControl *ipos;
85 yarp::dev::IControlMode *icmd;
86 yarp::dev::IInteractionMode *iimd;
87 yarp::dev::IEncoders *ienc;
88 yarp::dev::IPositionDirect *idir;
89 yarp::dev::IPidControl *ipid;
93 std::string m_requested_filename;
94 double m_home_tolerance;
95 double m_step_duration;
96 yarp::dev::Pid m_orig_pid;
97 yarp::dev::Pid m_new_pid;
This tests checks the a position PID response, sending a step reference signal with a positionDirect ...