-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix extrinsics calculation #2477
fix extrinsics calculation #2477
Conversation
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.
LGTM
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.
LGTM
i don't agree with this fix. the way "from - to" is used is ambiguous. in librealsense "extrinsics from A to B" refer to the transformation of a coordinates from/ expressed in frame A to coordinates expressed in frame B (which is the same as coordinate frame A expressed with respect to frame B). ROS, on the other hand, seems to refer with "to" rather to the kinematic tree (from "parent frame" to "child frame") which is exactly the opposite direction. i think the documentation here is a bit misleading: http://docs.ros.org/en/noetic/api/geometry_msgs/html/msg/TransformStamped.html but you can easily test it by publishing:
and possibly inspecting in rviz. |
Thanks for the feedback @schmidtp1 . |
Hi @schmidtp1 and thanks for you informative comment I think you are right. And as I see in one of our static TFs message:
while frame_id (parent) let it be the ROS2 depth coordinates so if we want to move from parent to child, which means from ROS2 coordinates to OPTICAL coordinates in this example, I think that now we calculate the extrinsic in a right way (after the PR is merged) and publish them correctly to the corresponding topics (e.g., /camera/extrinsics/depth_to_color). Adding also @Gilaadb, @benlev since they are using TFs and Extrinsic topic so they may can advice more. |
Tracked by LRS-476
Issue #2432