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

rtabmap two odometry frames

asked 2020-01-23 04:35:07 -0500

june2473 gravatar image

I am trying to use Intel Realsense t265 visual odometry camera with rtabmap on turtlebot3.

So, I have wheel odometry and camera odometry. t265 camera odometry uses wheel odometry as input. So, I need only camera odometry as input for doing SLAM.

Camera odometry frame is located where is camera located on the robot, on the top and front side. Wheel odometry is located on base_footprint

For rtabmap I set frame_id to base_link and odom input topic to /t265/odom/sample. When I run rviz I see that map is building around t265_odom_frame and base_link is located under the map.

Where is odometry frame should be placed on the robot for rtabmap? On the base_footprint place, right?

I suppose I should create new frame on the wheel odometry place, and write a script publishing camera odometry transformed from t265_odom_frame under this newly created frame. And then put this topic as input for rtabmap, am I right?

edit retag flag offensive close merge delete


kindly take a look at rep-105

Choco93 gravatar image Choco93  ( 2020-01-23 05:24:51 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-02-05 16:53:52 -0500

matlabbe gravatar image

The frame_id you set in rtabmap should be the base frame of the robot, which seems to be base_footprint in your case. Normally, the frame inside the odom topic should be also base_footprint.

Your wheel odometry would be on base_footprint. Is /t265/odom/sample outputting in same frame than your wheel odometry? If so, you may get a TF tree like that:

/map -> /odom_realsense -> /base_footprint -> /realsense_camera

You may add the TF tree to your question to have more details.

edit flag offensive delete link more


no, /t265/odom/sample is outputting in t265_odom_frame

so, I need to make transformation of t265 odometry data from t265_odom_frame to base_footprint, right?

what about wheel odometry frame? where can I place it on that odom tree in this case?

june2473 gravatar image june2473  ( 2020-02-06 22:30:36 -0500 )edit

I am not aware enough to know if t265_odom_frame woudl be the correction of the wheel odometry or if it is a new frame merging visual and wheel odometry. Is there a realsense documentation about that somewhere for this feature?

matlabbe gravatar image matlabbe  ( 2020-02-20 16:14:16 -0500 )edit

Question Tools

1 follower


Asked: 2020-01-23 04:35:07 -0500

Seen: 534 times

Last updated: Feb 05 '20