Atlas Robotics
SLAMIntermediate

Practical mapping: the scanning workflow and common errors

Atlasbot · 17/8/2026 · 11 min read

Practical mapping: the scanning workflow and common errors
Good map scanning process: slow, closed track, avoiding sharp turns

The previous articles —SLAM are what?, slam_toolbox, Cartographer — are algorithmic theories. This unit is a hands - on exercise: holding the controls, running the robot to actually scan an area, and common errors that cause the map to distort even when the algorithm is correct.

Key concepts

The basic map scanning process consists of three steps:

ros2 launch <package> slam_toolbox_online.launch.py   # Or cartographer.
ros2 run teleop_twist_keyboard teleop_twist_keyboard   # manual control
# ...through the area to be scanned...
ros2 run nav2_map_server map_saver_cli -f my_map        # save map

map_saver_cli is the last step, exporting the current map (holding in memory of the SLAM node) to the file .pgm/.yaml (the article Map) for later re-use via map_server. Two factors determine map quality more than any algorithm's parameters: speed of travel at scan, and whether or not to go in a closed loop.

How it works

Scan matching (article LiDAR SLAM ) needs enough overlap between successive scans for matching — moving too fast for the overlap to decrease drastically, algorithm easily disoriented or mismatched:

Straight travel: slow and steady — avoid sudden acceleration/deceleration
Turning: rotate MUCH MORE SLOWLY than normal straight travel
         (fast rotation changes the scan angle too much between 2 consecutive scans)

What is SLAM? said the loop closure corrects the cumulative drift error — but only when the real robot turns a position has passed. Good scanning procedures should purposefully go into closed loops (loops) rather than just going one-way straight lines and stopping — Each closed loop is an opportunity to back-end correct errors of the entire passage that has just passed.

In summary: "Rapid map scanning" is the most common beginner's mistake — the map quality ratio is inversely related to the speed of travel at scan, not the ratio is inversely related to the time spent. It's better to slow down for 10 minutes for a clean map than to go fast for 3 minutes and have to re-scan it.

Technical details

Formulas

The overlap between 2 consecutive scans depends directly on the speed of travel and the frequency of the LiDAR scan:

Distance_between_2_scans = v / LiDAR_scan_frequency

Example: v = 0.5 m/s, LiDAR scans at 10Hz
Distance_between_2_scans = 0.5 / 10 = 0.05m (5cm) — high overlap, good

Example: v = 2.0 m/s (too fast), same 10Hz LiDAR
Distance_between_2_scans = 2.0 / 10 = 0.2m (20cm) — much lower overlap,
considerably increasing the risk of scan matching losing track

Parameters

SymptomCheck first
S-shaped distorted mapCalibration odometry (radius wheel, 2 wheel spacing)
Large White/Black HoleHave you passed that area yet — not a parameter error
Double/Double wallGo too fast, or lack loop closure in that area.
map "jump" abruptlyTemporary loss of scan/odometry data (connectivity check)

Practical applications

S-shaped distorted map errors — straight wall sections in real-world show slight S-shaped curvature on the map — the most common cause of which is calibration bias between real-world odometry and encoder (the falsely declared radius wheel, or the falsely declared 2-wheel gap in the formula learned in Differential Drive). Since SLAM uses odometry as the initial point for scan matching, systematic bias (not random noise) in the odometry imprints the entire map in a consistent pattern — this is the reason before blaming the SLAM parameter, the basic odometry accuracy should be re-checked first.

Practical example

Debugging scenario: the resulting map has a large black hole (unknown area) in the middle,
even though the operator feels the robot passed through it many times

Follow the debugging table:
1. Review the actual route in rviz/rosbag — the robot only traveled
   AROUND the area and never THROUGH its center
2. Cause: the operator assumed circling the area was enough,
   but LiDAR only scanned the edges; no beam reached the middle
   of the large open area (outside effective range or occluded)

Solution: drive across that area at least 1 time,
rather than only circling it — this is not a SLAM parameter error

Not that the algorithm error — is simply not scanning enough. It is necessary to go back through the region, and no SLAM parameters "guess" the content of an unobserved region.

Common mistakes

  • Ultrafast switching during scanning, especially when rotating— as calculated in the Formula section, reduces overlap between consecutive scans, increasing the risk of disoriented scanning matching.
  • Performance of the SLAM parameter when the letter-shape distorted map S— as stated, the cause usually lies in the underlying calibration odometry, not the SLAM algorithm parameter.
  • Only goes around a wide area instead of crossing — as the example above, leaving a "black hole" area that LiDAR has never been to although the operator thought it had been scanned enough.
  • Failing to deliberately include closed loops in the scanning route— misses the opportunity to loop closure to correct cumulative drift errors, which is particularly important for large areas, long scan lengths.

Conclusion

The correct SLAM theory does not guarantee that the fine map — speed moves slowly and evenly, the purposeful scanning route creates closed loops, and the correct calibration odometry influences the final map quality more than any fine-tuned algorithm parameter. This is the last article of the SLAM — column, and after getting good maps from this process, the next Localization column goes into how the robot localizes correctly on that same map.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

Practical mapping: the scanning workflow and common errors — Atlas Robotics