ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to transform rtabmap/odom?

asked 2018-04-10 22:41:40 -0500

vkpankov gravatar image

I want to compare the visual odometry from RTABMAP (Kinect 2) with ground truth. But it provides odometry rotated 90 degrees around. How to align it with ground truth? Sorry for my English.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2018-04-12 11:27:13 -0500

matlabbe gravatar image

updated 2018-04-12 11:52:57 -0500

rtabmap follows REP 103 Coordinate Frame Conventions. If you try the hand-held tutorial for Kinect v2, you will see that an optical rotation is added with a static_transform_publisher between camera_link and kinect2_link frames:

 $ rosrun tf static_transform_publisher 0 0 0 -1.5707963267948966 0 -1.5707963267948966 camera_link kinect2_link 100

then launch rgbd_odometry with _frame_id:=camera_link so that odometry is computed in ROS coordinates and not image coordinates.

Is your ground truth also in ROS coordinates? If not, you may need to add a TF to be so.

cheers

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-04-10 22:41:40 -0500

Seen: 676 times

Last updated: Apr 12 '18