21 #ifndef _TORQUECONTORLSTIFFDAMPCHECK_H_
22 #define _TORQUECONTORLSTIFFDAMPCHECK_H_
25 #include <yarp/robottestingframework/TestCase.h>
26 #include <yarp/dev/ControlBoardInterfaces.h>
27 #include <yarp/dev/PolyDriver.h>
30 using namespace yarp::os;
32 class TorqueControlStiffDampCheck :
public yarp::robottestingframework::TestCase {
34 TorqueControlStiffDampCheck();
35 virtual ~TorqueControlStiffDampCheck();
37 virtual bool setup(yarp::os::Property& property);
39 virtual void tearDown();
44 void setMode(
int desired_control_mode, yarp::dev::InteractionModeEnum desired_interaction_mode);
45 void verifyMode(
int desired_control_mode, yarp::dev::InteractionModeEnum desired_interaction_mode, std::string title);
46 bool setAndCheckImpedance(
int joint,
double stiffness,
double damping);
47 void saveToFile(std::string filename, yarp::os::Bottle &b);
48 std::string getPath(
const std::string& str);
51 std::string robotName;
66 yarp::dev::PolyDriver *dd;
67 yarp::dev::IPositionControl *ipos;
68 yarp::dev::IAmplifierControl *iamp;
69 yarp::dev::IControlMode *icmd;
70 yarp::dev::IInteractionMode *iimd;
71 yarp::dev::IEncoders *ienc;
72 yarp::dev::ITorqueControl *itrq;
73 yarp::dev::IImpedanceControl *iimp;