Skip to content
Snippets Groups Projects
Commit 20f560a3 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[centroidal] in geometric init guess : take com height found during contact planning

parent 394ad32f
No related branches found
No related tags found
No related merge requests found
...@@ -28,7 +28,9 @@ def generateCentroidalTrajectory(cs_origin): ...@@ -28,7 +28,9 @@ def generateCentroidalTrajectory(cs_origin):
com_x += phase.RH_patch.placement.translation[0,0] com_x += phase.RH_patch.placement.translation[0,0]
com_y += phase.RH_patch.placement.translation[1,0] com_y += phase.RH_patch.placement.translation[1,0]
com_x /= phase.numActivePatches() com_x /= phase.numActivePatches()
com_y /= phase.numActivePatches() com_y /= phase.numActivePatches()
# test : take com height from config found from planning :
com_z = cs.contact_phases[pid].init_state[2,0]
state[0] = com_x state[0] = com_x
state[1] = com_y state[1] = com_y
state[2] = com_z state[2] = com_z
......
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