Skip to content

Commit f60255f

Browse files
committed
Add waist task
1 parent b034322 commit f60255f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/example_5_tsid_com_shift.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,9 +178,13 @@ def __init__(
178178

179179
self._add_foot_contacts()
180180
self._add_com_task()
181+
self._add_waist_task()
181182
self._add_posture_task(q0)
182183

184+
# Use EiquadprogFast: dynamic matrix sizes (memory allocation performed only when resizing)
183185
self.solver = tsid.SolverHQuadProgFast("solver-qp")
186+
187+
# Resize the solver to fit the number of variables, equality and inequality constraints
184188
self.solver.resize(self.invdyn.nVar, self.invdyn.nEq, self.invdyn.nIn)
185189

186190
def _get_frame_id(self, frame_name: str) -> int:

0 commit comments

Comments
 (0)