Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set gravity vector as an input argument of the CentroidalMPC #823

Merged

Conversation

LoreMoretti
Copy link
Contributor

@LoreMoretti LoreMoretti commented Mar 18, 2024

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 the setGravity one, to pass the gravity vector.

Moreover, if the user does not specify it, by default it is set to [0, 0, -9.81].

@LoreMoretti LoreMoretti changed the title set gravity vector as MPC controller input set gravity vector as an input argument of the CentroidalMPC Mar 18, 2024
@LoreMoretti LoreMoretti force-pushed the feature/setGravity/CentroidalMPC branch from f831709 to 123c73f Compare March 18, 2024 11:09
@LoreMoretti LoreMoretti marked this pull request as ready for review March 18, 2024 11:10
@LoreMoretti LoreMoretti force-pushed the feature/setGravity/CentroidalMPC branch from 123c73f to c534428 Compare April 23, 2024 16:49
@LoreMoretti
Copy link
Contributor Author

I made a mistake with the rebase. I will fix it.

@GiulioRomualdi
Copy link
Member

Thank you @LoreMoretti! Merging!

@GiulioRomualdi GiulioRomualdi merged commit 2dc2cdc into ami-iit:master Apr 24, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants