1 """Test CoM admittance control as described in paper"""
6 from dynamic_graph.sot_talos_balance.utils.run_test_utils
import (
23 print((
"Using" if use_distribute
else "Not using") +
" output of force distribution")
25 run_test(
"appli_dcm_zmp_control_distribute.py")
28 input(
"Wait before running the test")
31 print(
"Connect ZMP reference")
32 runCommandClient(
"plug(robot.zmp_estimator.emergencyStop,robot.cm.emergencyStop_zmp)")
35 "plug(robot.distribute.emergencyStop,robot.cm.emergencyStop_distribute)"
38 "plug(robot.distribute.zmpRef,robot.com_admittance_control.zmpDes)"
42 "plug(robot.dcm_control.zmpRef,robot.com_admittance_control.zmpDes)"
45 "robot.com_admittance_control.setState(robot.wp.comDes.value,[0.0,0.0,0.0])"
52 if test_folder
is not None:
55 print(
"Executing the trajectory")
58 print(
"Not executing the trajectory")
62 print(
"Putting the robot in position...")
65 print(
"Robot is in position!")
69 print(
"Executing the sinusoid...")
71 print(
"Sinusoid started!")
73 print(
"Not executing the sinusoid")
77 print(
"Stopping the robot...")
80 print(
"Putting the robot back...")
83 print(
"The robot is back in position!")
85 print(
"Not putting the robot back")
87 print(
"Not executing the sinusoid")
91 print(
"Putting the robot in position...")
95 print(
"Robot is in position!")
101 print(
"Raising the foot...")
106 print(
"Foot has been raised!")
107 foot_on_ground =
False
110 print(
"Putting the foot back...")
114 print(
"The foot is back in position!")
115 foot_on_ground =
True
117 print(
"Not putting the foot back")
119 print(
"Not raising the foot")
124 print(
"Putting the robot back...")
128 print(
"The robot is back in position!")
130 print(
"Not putting the robot back")
132 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)
def get_file_folder(argv, send=True)