1 """Test CoM admittance control as described in paper."""
5 from dynamic_graph.sot_talos_balance.utils.run_test_utils
import (
21 input(
"Wait before running the test")
24 print(
"Set controller")
25 runCommandClient(
"plug(robot.zmp_estimator.emergencyStop,robot.cm.emergencyStop_zmp)")
28 "plug(robot.distribute.emergencyStop,robot.cm.emergencyStop_distribute)"
39 print(
"Putting the robot in position...")
42 print(
"Robot is in position!")
46 print(
"Executing the sinusoid...")
48 print(
"Sinusoid started!")
50 print(
"Not executing the sinusoid")
54 print(
"Stopping the robot...")
57 print(
"Putting the robot back...")
60 print(
"The robot is back in position!")
62 print(
"Not putting the robot back")
64 print(
"Not executing the sinusoid")
68 print(
"Putting the robot in position...")
72 print(
"Robot is in position!")
76 print(
"Raising the foot...")
78 'robot.leftAnklePitchTask.task.controlSelec.value="0"*robot.sot.getSize()'
81 'robot.leftAnkleRollTask.task.controlSelec.value="0"*robot.sot.getSize()'
87 print(
"Foot has been raised!")
90 print(
"Not raising the foot")
94 print(
"Putting the foot back...")
99 'robot.leftAnklePitchTask.task.controlSelec.value="1"*robot.sot.getSize()'
102 'robot.leftAnkleRollTask.task.controlSelec.value="1"*robot.sot.getSize()'
104 print(
"The foot is back in position!")
106 print(
"Not putting the foot back")
114 print(
"Putting the robot back...")
118 print(
"The robot is back in position!")
120 print(
"Not raising the foot")
def ask_for_confirmation(text)
def run_ft_calibration(sensor_name, force=False)
def run_test(appli, verbosity=1, interactive=True)