1 """Test CoM admittance control as described in paper."""
5 from dynamic_graph.sot_talos_balance.utils.run_test_utils
import (
18 run_test(
"appli_dcmZmpCopControl.py")
21 input(
"Wait before running the test")
24 print(
"Set controller")
25 runCommandClient(
"plug(robot.zmp_estimator.emergencyStop,robot.cm.emergencyStop_zmp)")
27 "plug(robot.distribute.emergencyStop,robot.cm.emergencyStop_distribute)"
29 runCommandClient(
"plug(robot.distribute.zmpRef,robot.com_admittance_control.zmpDes)")
31 "robot.com_admittance_control.setState(robot.wp.comDes.value,[0.0,0.0,0.0])"
41 print(
"Putting the robot in position...")
44 print(
"Robot is in position!")
48 print(
"Executing the sinusoid...")
50 print(
"Sinusoid started!")
52 print(
"Not executing the sinusoid")
56 print(
"Stopping the robot...")
59 print(
"Putting the robot back...")
62 print(
"The robot is back in position!")
64 print(
"Not putting the robot back")
66 print(
"Not executing the sinusoid")
70 print(
"Putting the robot in position...")
74 print(
"Robot is in position!")
78 print(
"Raising the foot...")
83 print(
"Foot has been raised!")
86 print(
"Not raising the foot")
90 print(
"Putting the foot back...")
94 print(
"The foot is back in position!")
96 print(
"Not putting the foot back")
104 print(
"Putting the robot back...")
108 print(
"The robot is back in position!")
110 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)