4 from test_hironx
import *
10 if not self.robot.ic
or self.robot.ic.ref.get_component_profile().version <
'315.3.0':
14 self.robot.goInitial(tm=1)
15 ret = self.robot.startImpedance(
'rarm')
17 ret = self.robot.seq_svc.setWrenches([0,0,0,0,0,0,
20 self.robot.seq_svc.waitInterpolation();
21 ret = self.robot.seq_svc.setWrenches([0,0,0,0,0,0,
24 self.robot.seq_svc.waitInterpolation();
25 ret = self.robot.seq_svc.setWrenches([0,0,0,0,0,0,
28 self.robot.seq_svc.waitInterpolation();
29 ret = self.robot.seq_svc.setWrenches([0,0,0,0,0,0,
32 self.robot.seq_svc.waitInterpolation();
33 ret = self.robot.seq_svc.setWrenches([0,0,0,0,0,0,
36 self.robot.seq_svc.waitInterpolation();
38 ret = self.robot.stopImpedance(
'rarm')
44 If Servo Controller RTC are running (which will be always true for 45 the tests because it runs on simulation), kill it then test if servoOn 46 method still succeeds. 49 self.robot.sc_svc =
None 51 print(
'Servo Controller RTC is not running, so skipping this test.')
53 self.assertEqual(self.robot.servoOn(), 1)
55 if __name__ ==
'__main__':
57 rostest.rosrun(PKG,
'test_hronx_controller', TestHiroController)
def test_hands_controller(self)
def test_impedance_controller(self)