-
Notifications
You must be signed in to change notification settings - Fork 38
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 CommonConversions and ManifConversions library #138
Add CommonConversions and ManifConversions library #138
Conversation
f3f5012
to
9fe0af7
Compare
I think we have to pay attention to the definition of the What about creating a library, like In this way, even if we depend on a new library, we can add conversion functions without the risk of making the new library a dependency for all the components. This is what we are doing already with @traversaro @GiulioRomualdi what do you think? |
Agreed. That would be a more scalable solution. Under the |
I think that conversions as separate library/libraries make sense. Furthermore, I am not sure it is good idea to have all those definitions, as I think they will complicate the readability of the API. For example, everyone knows what a void functionThatTakesARotationMatrix(BipedalLocomotion::Common::Definitions::Rotation rot) when I think it would be much more easy to read and use as: void functionThatTakesARotationMatrix(Eigen::Matrix3d rot) Also for conversions, I think that: void Conversions::eigenRotTrans2ManifPose(Eigen::Ref<const Definitions::RotationMatrix> rotation,
Eigen::Ref<const Definitions::Position> translation,
Definitions::Pose& pose) is not really clear, while: void Conversions::eigenRotTrans2ManifPose(Eigen::Ref<const Eigen::Matrix3d> rotation,
Eigen::Ref<const Eigen::Vector3d> translation,
manif::SE3d& pose) you get what this function is doing directly. |
9fe0af7
to
b006442
Compare
5d9decf
to
dbade28
Compare
I've made some relevant changes. |
dbade28
to
40f0079
Compare
src/Conversions/include/BipedalLocomotion/Conversions/CommonConversions.h
Outdated
Show resolved
Hide resolved
src/Conversions/include/BipedalLocomotion/Conversions/CommonConversions.h
Outdated
Show resolved
Hide resolved
src/Conversions/include/BipedalLocomotion/Conversions/ManifConversions.h
Outdated
Show resolved
Hide resolved
src/Conversions/include/BipedalLocomotion/Conversions/ManifConversions.h
Outdated
Show resolved
Hide resolved
src/Conversions/include/BipedalLocomotion/Conversions/ManifConversions.h
Outdated
Show resolved
Hide resolved
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.
@prashanthr05, Thanks for iterating.
If @traversaro and @S-Dafarra agree we can proceed with the merge
@prashanthr05 last comment, could you update the CHANGELOG.md? |
Done in 1c17dc6. |
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 noticed that the versions are somehow duplicate. Are the versions returning void
needed?
src/Conversions/include/BipedalLocomotion/Conversions/ManifConversions.h
Outdated
Show resolved
Hide resolved
I was thinking about the naming. Is it necessary to be so specific about the input types? We could just specify the output type, like |
Thanks for this suggestion. I have made the requested changes in b6eadd6 |
src/Conversions/include/BipedalLocomotion/Conversions/CommonConversions.h
Show resolved
Hide resolved
src/Conversions/include/BipedalLocomotion/Conversions/ManifConversions.h
Show resolved
Hide resolved
@prashanthr05 let me know if you want to reorganize the commits. Otherwise, I can merge |
b6eadd6
to
0a5407e
Compare
@GiulioRomualdi I have reorganized the commits. You could proceed with the merge after the CI passes, thank you! |
Merging! Thank you all! |
This PR includes basic aliases and conversions between Eigen/manif/iDynTree.This PR includes conversions between Eigen/manif/iDynTree objects.
Currently, only conversions of transform objects are included.