Skip to content
Snippets Groups Projects
Commit 3b6e34f5 authored by odri's avatar odri
Browse files

Force Y offset of CoM to zero

parent 4d886377
No related branches found
No related tags found
No related merge requests found
Pipeline #16690 failed
......@@ -75,6 +75,7 @@ def init_robot(q_init, params):
params.mass = solo.data.mass[0] # Mass of the whole urdf model (also = to Ycrb[1].mass)
params.I_mat = solo.data.Ycrb[1].inertia.ravel().tolist() # Composite rigid body inertia in q_init position
params.CoM_offset = (solo.data.com[0][:3] - q[0:3, 0]).tolist()
params.CoM_offset[1] = 0.0
for i in range(4):
for j in range(3):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment