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_integrator.py")
25 input(
"Wait before running the test")
28 print(
"Connect ZMP reference")
29 runCommandClient(
"plug(robot.zmp_estimator.emergencyStop,robot.cm.emergencyStop_zmp)")
30 runCommandClient(
"plug(robot.dcm_control.zmpRef,robot.com_admittance_control.zmpDes)")
32 "robot.com_admittance_control.setState(robot.wp.comDes.value,[0.0,0.0,0.0])"
39 if test_folder
is not None:
42 print(
"Executing the trajectory")
45 print(
"Not executing the trajectory")
49 print(
"Putting the robot in position...")
52 print(
"Robot is in position!")
56 print(
"Executing the sinusoid...")
58 print(
"Sinusoid started!")
60 print(
"Not executing the sinusoid")
64 print(
"Stopping the robot...")
67 print(
"Putting the robot back...")
70 print(
"The robot is back in position!")
72 print(
"Not putting the robot back")
74 print(
"Not executing the sinusoid")
78 print(
"Putting the robot in position...")
81 print(
"Robot is in position!")
87 print(
"Raising the foot...")
91 print(
"Foot has been raised!")
92 foot_on_ground =
False
95 print(
"Putting the foot back...")
98 print(
"The foot is back in position!")
101 print(
"Not putting the foot back")
103 print(
"Not raising the foot")
108 print(
"Putting the robot back...")
111 print(
"The robot is back in position!")
113 print(
"Not putting the robot back")
115 print(
"Not raising the foot")
117 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)