3 Created on Thu Apr 18 09:47:07 2019 11 import pinocchio
as pin
14 np.set_printoptions(precision=3, linewidth=200, suppress=
True)
17 DATA_FILE_LIPM =
"talos_walking_traj_lipm.npz" 18 DATA_FILE_TSID =
"talos_walking_traj_tsid.npz" 22 filename = str(os.path.dirname(os.path.abspath(__file__)))
23 urdf =
"/talos_data/robots/talos_reduced.urdf" 24 modelPath = getModelPath(urdf)
25 urdf = modelPath + urdf
26 srdf = modelPath +
"/talos_data/srdf/talos.srdf" 27 path = os.path.join(modelPath,
"../..")
31 lxp = foot_scaling * 0.10
32 lxn = foot_scaling * 0.05
33 lyp = foot_scaling * 0.05
34 lyn = foot_scaling * 0.05
39 rf_frame_name =
"leg_right_sole_fix_joint" 40 lf_frame_name =
"leg_left_sole_fix_joint" 41 contactNormal = np.matrix(
52 foot_step_0 = np.array([0.0, -0.085])
73 tau_max_scaling = 1.45
81 gain_vector = np.array(
117 masks_posture = np.ones(nv - 6)
121 viewer = pin.visualize.GepettoVisualizer