1 """Test CoM admittance control as described in paper"""
6 from dynamic_graph.sot_talos_balance.utils.run_test_utils
import (
22 run_test(
"appli_dcm_zmp_control_ffdc.py")
26 input(
"Wait before running the test")
29 print(
"Set controller")
30 runCommandClient(
"plug(robot.zmp_estimator.emergencyStop,robot.cm.emergencyStop_zmp)")
32 "plug(robot.distribute.emergencyStop,robot.cm.emergencyStop_distribute)"
34 runCommandClient(
"plug(robot.distribute.zmpRef,robot.com_admittance_control.zmpDes)")
36 "robot.com_admittance_control.setState(robot.wp.comDes.value,[0.0,0.0,0.0])"
43 input(
"Wait before activating foot force difference control")
48 if test_folder
is not None:
51 print(
"Executing the trajectory")
54 print(
"Not executing the trajectory")
58 print(
"Putting the robot in position...")
61 print(
"Robot is in position!")
65 print(
"Executing the sinusoid...")
67 print(
"Sinusoid started!")
69 print(
"Not executing the sinusoid")
73 print(
"Stopping the robot...")
76 print(
"Putting the robot back...")
79 print(
"The robot is back in position!")
81 print(
"Not putting the robot back")
83 print(
"Not executing the sinusoid")
87 print(
"Putting the robot in position...")
91 print(
"Robot is in position!")
97 print(
"Raising the foot...")
102 print(
"Foot has been raised!")
103 foot_on_ground =
False
106 print(
"Putting the foot back...")
110 print(
"The foot is back in position!")
111 foot_on_ground =
True
113 print(
"Not putting the foot back")
115 print(
"Not raising the foot")
120 print(
"Putting the robot back...")
124 print(
"The robot is back in position!")
126 print(
"Not putting the robot back")
128 print(
"Not raising the foot")
130 input(
"Wait before dumping the data")
def ask_for_confirmation(text)
def run_ft_calibration(sensor_name, force=False)
def run_test(appli, verbosity=1, interactive=True)
def get_file_folder(argv, send=True)