Ask Your Question
0

how gmapping gather odom data?

asked 2020-03-05 11:58:04 -0500

xinxinxin gravatar image

Hi

I am using stage_ros to simulation slam.

The Gmapping works but I noticed that stage_ros is publishing "nav_msgs/Odometry" information under the topic /odom.

While the gammping node is subscribing the /tf topic to get odom data.

I checked the message under topic /tf, it was "tf2_msgs/TFMessage".

And I echo both of those topics. seems like the /tf topic is publishing the transform between difference frame (yes, as expected.)

But the stage_ros node publishes the twist data under topic /odom like the image below image description

So, I am interested in how the gmapping get odometry information from the topic /tf. Or, if I have /odom topic, can I setting gmapping to subscribe from that?

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-05 12:48:35 -0500

Stage ROS (or generally the odometry source) will also publish the TF transformations via a TransformBroadcaster.

edit flag offensive delete link more

Comments

Hi, If my understanding is correct, The Odometry information and TF transform are two things. The TF transform stands for the transforms between two frames (like the transforms between two rigids). The odometry information records the wheel data, like how long the robot has gone.

Why gmapping receive the odom information from /tf instead of from /odom?

Thankyou

xinxinxin gravatar image xinxinxin  ( 2020-03-10 12:48:21 -0500 )edit

TF is a standard used by the TF toolset (which you should look up its wiki page if you don't know it) for time variant transformations. This gives it an interpolated, high-quality estimate of the odometry vs just taking the last message from a single source.

TF transformation will provide a very similar thing to the odometry message, but they are used for different purposes.

stevemacenski gravatar image stevemacenski  ( 2020-03-10 14:44:59 -0500 )edit

Thank you. I found the TF tutorial on the wiki. Got a better though after running the tutorial.

xinxinxin gravatar image xinxinxin  ( 2020-04-02 15:18:30 -0500 )edit

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: 2020-03-05 11:58:04 -0500

Seen: 173 times

Last updated: Mar 05 '20