3 Created on Thu Apr 18 09:47:07 2019 11 import pinocchio
as pin
13 np.set_printoptions(precision=3, linewidth=200, suppress=
True)
16 DATA_FILE_LIPM =
"romeo_walking_traj_lipm.npz" 17 DATA_FILE_TSID =
"romeo_walking_traj_tsid.npz" 21 filename = str(os.path.dirname(os.path.abspath(__file__)))
22 path = filename +
"/../models/romeo" 23 urdf = path +
"/urdf/romeo.urdf" 24 srdf = path +
"/srdf/romeo_collision.srdf" 27 lxp = foot_scaling * 0.10
28 lxn = foot_scaling * 0.05
29 lyp = foot_scaling * 0.05
30 lyn = foot_scaling * 0.05
35 rf_frame_name =
"RAnkleRoll" 36 lf_frame_name =
"LAnkleRoll" 37 contactNormal = np.matrix(
48 foot_step_0 = np.array([0.0, -0.096])
71 tau_max_scaling = 1.45
79 gain_vector = kp_posture * np.ones(nv - 6)
80 masks_posture = np.ones(nv - 6)
84 viewer = pin.visualize.GepettoVisualizer