-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add member function to set gravity vector in centroidal dynamics system #821
Conversation
c73868a
to
db554e2
Compare
db554e2
to
1bad23a
Compare
There was a problem hiding this 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); |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
The CI is not due to your change 😀 |
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 alocal
one, and we want to write the centroidal dynamics in this newlocal frame
, it might be needed to set a new gravity vector.