Closed LoreMoretti closed 2 months ago
The goal of this PR is to expose the gravity vector as an input argument of the CentroidalMPC.
CentroidalMPC
In this way, the user can pass it as other input arguments (like currentCOM, externalWrench, ...).
currentCOM
externalWrench
User can leverage the setState member function, or the setGravity one, to pass the gravity vector.
setState
setGravity
Moreover, if the user does not specify it, by default it is set to [0, 0, -9.81].
[0, 0, -9.81]
I made a mistake with the rebase. I will fix it.
Thank you @LoreMoretti! Merging!
The goal of this PR is to expose the gravity vector as an input argument of the
CentroidalMPC
.In this way, the user can pass it as other input arguments (like
currentCOM
,externalWrench
, ...).User can leverage the
setState
member function, or thesetGravity
one, to pass the gravity vector.Moreover, if the user does not specify it, by default it is set to
[0, 0, -9.81]
.