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

How does the localisation mode in slam toolbox work?

asked 2021-07-24 11:37:25 -0600

Immanuel gravatar image

updated 2021-07-28 23:57:39 -0600

I am kind of new to slam_toolbox. I have used gmapping + amcl in the past.

I request someone to confirm my understanding of the localization mode and correct me if it is wrong. I am using the melodic branch btw.

So first of all, I create a map using either the online async or the online sync launch file, and then at the end I click on the serialize map button on the rviz plugin which creates the and abc.posegraph files in ~/.ros. The mapping part worked beautifully.

Now if I want to localize on the map that was created (similar to what AMCL does), I would use the localization launch with the 'localization' mode, the file name, and the start pose specified in the localization YAML file. This should basically help the robot localize on the map that was created earlier.

But when I tested this, it does not seem to work like AMCL. The map still grows (it looks I am still mapping).

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-08-16 00:22:04 -0600

AidanK gravatar image

According to the paper (, the localization mode does continue to update the pose-graph with new constraints and nodes, but the updated map expires overtime. It's described as "elastic", which I interpret to mean it holds the updates graph for some amount of time, but does not add it to the permanent graph.

I haven't used Slam_Toolbox yet (I am in the process of getting it setup), but the documentation does align with the behavior you are seeing.

edit flag offensive delete link more

Question Tools



Asked: 2021-07-24 11:37:25 -0600

Seen: 697 times

Last updated: Aug 16 '21