1 """Created on Thu Apr 18 09:47:07 2019
6 from pathlib
import Path
9 import pinocchio
as pin
11 np.set_printoptions(precision=3, linewidth=200, suppress=
True)
14 DATA_FILE_LIPM =
"romeo_walking_traj_lipm.npz"
15 DATA_FILE_TSID =
"romeo_walking_traj_tsid.npz"
19 filename = str(Path(__file__).resolve().parent)
20 path = filename +
"/../models/romeo"
21 urdf = path +
"/urdf/romeo.urdf"
22 srdf = path +
"/srdf/romeo_collision.srdf"
25 lxp = foot_scaling * 0.10
26 lxn = foot_scaling * 0.05
27 lyp = foot_scaling * 0.05
28 lyn = foot_scaling * 0.05
33 rf_frame_name =
"RAnkleRoll"
34 lf_frame_name =
"LAnkleRoll"
35 contactNormal = np.matrix(
46 foot_step_0 = np.array([0.0, -0.096])
69 tau_max_scaling = 1.45
77 gain_vector = kp_posture * np.ones(nv - 6)
78 masks_posture = np.ones(nv - 6)
82 viewer = pin.visualize.GepettoVisualizer