This repository was archived by the owner on May 31, 2025. It is now read-only.
conversions for Eigen::Isometry3d#335
Merged
tfoote merged 4 commits intoros:melodic-develfrom Oct 19, 2018
Merged
Conversation
rhaschke
commented
Oct 17, 2018
| t.transform.translation.y = T.translation().y(); | ||
| t.transform.translation.z = T.translation().z(); | ||
|
|
||
| Eigen::Quaterniond q(T.rotation()); |
Contributor
Author
There was a problem hiding this comment.
Affine3d::rotation() performs a costly SVD.
| msg.orientation.y = Eigen::Quaterniond(in.rotation()).y(); | ||
| msg.orientation.z = Eigen::Quaterniond(in.rotation()).z(); | ||
| msg.orientation.w = Eigen::Quaterniond(in.rotation()).w(); | ||
| Eigen::Quaterniond q(in.linear()); |
Contributor
Author
There was a problem hiding this comment.
compute the quaternion only once!
| msg.orientation.y = q.y(); | ||
| msg.orientation.z = q.z(); | ||
| msg.orientation.w = q.w(); | ||
| if (msg.orientation.w < 0) { |
Contributor
Author
There was a problem hiding this comment.
Constrain quaternions to the half-space w >= 0 as in tf1.
10 tasks
tfoote
approved these changes
Oct 19, 2018
Member
tfoote
left a comment
There was a problem hiding this comment.
Thanks for adding this support.
Contributor
Author
|
@tfoote Do you plan a new release of geometry2 any time soon? |
Member
|
Yes, I've just cleared the backlog of PRs and plan to release after the next indigo/kinetic sync |
|
This change needs to be ported to the ros2 version of geometry2 for moveit's conversion: https://github.com/ros2/geometry2 |
|
Ideally the whole geometry2 would be synced to the ros2 version |
seanyen
pushed a commit
to ms-iot/geometry2
that referenced
this pull request
Mar 22, 2021
As of C++11, the size() method of a std::list is guaranteed to have constant cost, so we don't need to track the message count ourselves. Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In the vein of ros/geometry#113, I added converters for
Eigen::Isometry3dalso totf2_eigen.Eigen::Affine3dcannot exploit the SE(3) structure of transforms and thus needs toHence,
Affine3dshould be actually avoided.