1 """Created on Thu Apr 18 09:47:07 2019
6 from pathlib
import Path
9 import pinocchio
as pin
12 np.set_printoptions(precision=3, linewidth=200, suppress=
True)
15 DATA_FILE_LIPM =
"talos_walking_traj_lipm.npz"
16 DATA_FILE_TSID =
"talos_walking_traj_tsid.npz"
20 filename = str(Path(__file__).resolve().parent)
21 urdf =
"talos_data/robots/talos_reduced.urdf"
22 modelPath = Path(getModelPath(urdf))
23 urdf = modelPath / urdf
24 srdf = modelPath /
"talos_data/srdf/talos.srdf"
25 path = modelPath /
"../.."
29 lxp = foot_scaling * 0.10
30 lxn = foot_scaling * 0.05
31 lyp = foot_scaling * 0.05
32 lyn = foot_scaling * 0.05
37 rf_frame_name =
"leg_right_sole_fix_joint"
38 lf_frame_name =
"leg_left_sole_fix_joint"
39 contactNormal = np.matrix(
50 foot_step_0 = np.array([0.0, -0.085])
71 tau_max_scaling = 1.45
79 gain_vector = np.array(
115 masks_posture = np.ones(nv - 6)
119 viewer = pin.visualize.GepettoVisualizer