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_dcmZmpControl_distribute.py")
23 if use_force_distribution:
24 print(
"Using output of force distribution")
26 print(
"Not using output of force distribution")
28 input(
"Wait before running the test")
31 print(
"Connect ZMP reference")
32 runCommandClient(
"plug(robot.zmp_estimator.emergencyStop,robot.cm.emergencyStop_zmp)")
33 if use_force_distribution:
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])"
53 print(
"Putting the robot in position...")
56 print(
"Robot is in position!")
60 print(
"Executing the sinusoid...")
62 print(
"Sinusoid started!")
64 print(
"Not executing the sinusoid")
68 print(
"Stopping the robot...")
71 print(
"Putting the robot back...")
74 print(
"The robot is back in position!")
76 print(
"Not putting the robot back")
78 print(
"Not executing the sinusoid")
82 print(
"Putting the robot in position...")
86 print(
"Robot is in position!")
90 print(
"Raising the foot...")
95 print(
"Foot has been raised!")
98 print(
"Not raising the foot")
102 print(
"Putting the foot back...")
106 print(
"The foot is back in position!")
109 print(
"Not putting the foot back")
113 print(
"Putting the robot back...")
117 print(
"The robot is back in position!")
119 print(
"Not raising the foot")
121 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)