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

Add member function to set gravity vector in centroidal dynamics system #821

Conversation

LoreMoretti
Copy link
Contributor

This PR aims at providing a member function to set on the fly the gravity vector used in CentroidalDynamics.h.

For example, when the reference frame is changed from the world one to a local one, and we want to write the centroidal dynamics in this new local frame, it might be needed to set a new gravity vector.

@LoreMoretti LoreMoretti marked this pull request as ready for review March 15, 2024 15:54
@LoreMoretti LoreMoretti force-pushed the feature/gravityVector/CentroidalDynamicsSimulator branch from c73868a to db554e2 Compare March 15, 2024 16:00
@LoreMoretti LoreMoretti force-pushed the feature/gravityVector/CentroidalDynamicsSimulator branch from db554e2 to 1bad23a Compare March 15, 2024 16:02
Copy link
Member

@GiulioRomualdi GiulioRomualdi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A minor comment :)

* @param gravity the value of the gravity vector used in the system dynamics.
* @return true in case of success, false otherwise.
*/
bool setGravityVector(const Eigen::Vector3d& gravity);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can return a void and it should take as input Eigen::Ref

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @GiulioRomualdi for the suggestion.

Done in
6b0625e

@GiulioRomualdi
Copy link
Member

The CI is not due to your change 😀

@GiulioRomualdi GiulioRomualdi self-requested a review March 17, 2024 20:25
@GiulioRomualdi GiulioRomualdi merged commit 1e9cb3f into ami-iit:master Mar 17, 2024
10 of 12 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.

3 participants