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

While building tf map for gmapping, how to set tf tree?

asked 2018-03-29 21:37:01 -0500

Mingdyong gravatar image

While building tf map for gmapping, how to set tf tree?

Following document, http://wiki.ros.org/gmapping


Subscribed Topics tf (tf/tfMessage)Transforms necessary to relate frames for laser, base, and odometry (see below) scan (sensor_msgs/LaserScan)Laser scans to create the map from


I understood like as follow.

subscribe topie as tf made it from laser , base, odom topic,  and publish map topic. to transform tf using [ laser , base, odom ]

And in the document say like below to for making tf tree


Required tf Transforms <the frame="" attached="" to="" incoming="" scans=""> → base_linkusually a fixed value, broadcast periodically by a robot_state_publisher, or a tf static_transform_publisher. base_link → odomusually provided by the odometry system (e.g., the driver for the mobile base)

Provided tf Transforms map → odomthe current estimate of the robot's pose within the map frame


Document say, [ map → odom ] [ base_link → odom ]

but, the project I run gmapping & built map show the tf tree like below [ map -> odom -> base_footprint -> base_link -> base_scan ]

I can not understand what does document saying. As I guess,

[ <the frame="" attached="" to="" incoming="" scans=""> → base_link ] this could be changed as

[  base link -> base scan  ] [  odom -> base link ] like that.

please understand me.

Thankyou.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2020-07-01 09:34:17 -0500

bfdmetu gravatar image

It should be map>odom>base_footprint>base_link>laser

from bottom to top

edit flag offensive delete link more

Comments

How can we modify the tf tree? I'm just starting to read about gmapping and SLAM so I have no idea

mgrallos gravatar image mgrallos  ( 2022-03-20 10:27:16 -0500 )edit

Maybe you mean from TOP to BOTTOM not the opposite.. right ? Because the opposite means laser->base_link->odom->map , while the gmapping is giving a tf from map->odom .Can you explain ?

Kostas Tzias gravatar image Kostas Tzias  ( 2022-10-12 07:22:11 -0500 )edit

Question Tools

Stats

Asked: 2018-03-29 21:37:01 -0500

Seen: 1,096 times

Last updated: Jul 01 '20