-
Notifications
You must be signed in to change notification settings - Fork 71
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 inertial parameters regressor method to KinDynComputations #480
Conversation
With this commit, the |
doc/dcTutorialCpp.md
Outdated
// Check that ok is actually true | ||
|
||
KinDynComputations kinDynComp; | ||
kinDynComp.loadRobotModel("model.urdf"); |
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 should not work!
kinDynComp.loadRobotModel(mdlLoader.model());
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.
I have toooo many failed attempts to get good documentation around, I should just thrown them our. :D
Anyway, nice catch!
/** | ||
* Compute the getNrOfDOFS()+6 vector of generalized external forces. | ||
* | ||
* The semantics of baseAcc, the base part of baseForceAndJointTorques |
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.
IMHO using "variable name style", i.e. baseAcc
and baseForceAndJointTorques
in a function that does not accept these variables is a bit confusing.
Same for the inverseDynamicsInertialParametersRegressor
method.
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.
Yes, that's a left over, thanks for catching that.
I think I need to stop in trying to fix all the docs otherwise I will do that for one month. : ) |
In particular, add the inverseDynamicsInertialParametersRegressor that computes the (6+nrOfDofs) \times (10*nrOfLinks) matrix that maps the inertial parameters to the part of inverse dynamics that depends on inertial parameters, and the generalizedExternalForces that computes the contribution of external forces to inverse dynamics (useful because those are not included in the torques computed by the regressor).
Cleanup also documentation for KinDynComputations, to simplify the process of adding docs for the new method.
eaac853
to
122beec
Compare
In particular, add the inverseDynamicsInertialParametersRegressor that
computes the (6+nrOfDofs) \times (10*nrOfLinks) matrix that maps the inertial parameters
to the part of inverse dynamics that depends on inertial parameters,
and the generalizedExternalForces that computes the contribution of external
forces to inverse dynamics (useful because those are not included in the
torques computed by the regressor).
I would still like to add some more docs, but nevertheless the code and the tests should be complete.