SLAM software

SLAM Toolbox

SLAM Toolbox is a ROS 2-oriented tool for 2D laser mapping and localization. It works with scan data and a robot pose estimate and can serialize pose graphs for continued mapping or localization. It does not solve visual 3D reconstruction.

Practical engineering guide

What you can build with SLAM Toolbox and where problems start

SLAM Toolbox is a ROS 2-oriented tool for 2D laser mapping and localization. It works with scan data and a robot pose estimate and can serialize pose graphs for continued mapping or localization. It does not solve visual 3D reconstruction.

A first test you can reproduce

  1. 01.Verify LaserScan data, map/odom/base_link transforms and wheel odometry on a short controlled route.
  2. 02.Choose the mapping launch and configure scan matcher and map resolution for the 2D environment.
  3. 03.Drive a loop and inspect scan alignment, pose-graph corrections and the generated occupancy map.
  4. 04.Save both the occupancy map and the serialized pose graph as appropriate for later mapping/localization.

Questions that come up during real implementation

Why are the walls doubled or tilted?

Inspect odometry, laser extrinsic orientation, timestamp mismatch, scan direction and motion distortion. Scan matching can align poorly if the input estimate jumps or the robot rotates faster than scan update. Verify the raw LaserScan in RViz before tuning the optimizer.

Can I reopen a map and continue building it?

SLAM Toolbox supports serialization and continued mapping workflows. An occupancy-grid image by itself does not preserve the same pose-graph state. Follow the documented serialize/deserialize path if you need to keep graph information.

Should I use SLAM Toolbox or RTAB-Map?

Choose SLAM Toolbox for a straightforward 2D LaserScan-based map and ROS 2 localization workflow. RTAB-Map offers visual/depth and LiDAR configurations and 3D-related mapping. Sensor capabilities and environment determine the better starting point.

Checks before using it on a robot

  • Measure map-to-reference distances along a closed loop.
  • Repeat mapping with moving people and check how scan filtering handles them.

Compatibility and installation

Developer
Steve Macenski and contributors
License
Open source
Operating systems
Linux
ROS support
ROS 2
Languages
C++
Installation method
ROS packages and official source repository

Profile sources

Explore the connected robotics directories