Ask Your Question
0

How to transform rtabmap/odom?

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

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 -0600

matlabbe gravatar image

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 194 times

Last updated: Apr 12 '18