SLAM Explained: Simultaneous Localization and Mapping — EKF-SLAM, GraphSLAM, Loop Closure & ROS 2

SLAM from fundamentals: EKF-SLAM vs GraphSLAM vs particle filter SLAM, feature extraction, loop closure detection, map building, LiDAR vs camera SLAM, and how ROS 2 (SLAM Toolbox, Cartographer) connects the full stack.

In this article

  • Which SLAM should you start with?
  • Use the article like a decision tree
  • The Probabilistic Core of SLAM
  • Core SLAM Concepts You Must Know
  • What a SLAM System Actually Contains
  • Main Families of SLAM Algorithms
  • EKF-SLAM: The Predict and Update Equations
  • Graph SLAM: Factor Graphs and Pose Graph Optimization
  • Sensor Modalities Used in SLAM
  • Maps in SLAM Are Not All the Same
  • Drift, Loop Closure, and Global Consistency
  • Common Failure Modes
  • Loop Closure: How It Actually Works
  • Advanced SLAM Concepts: Data Association and Bundle Adjustment
  • ROS 2 Tools You Will Actually See
  • How ROS 2 Connects to SLAM in a Real Robot
  • SLAM Algorithm Comparison: slam_toolbox vs Cartographer vs ORB-SLAM3
  • Setting Up slam_toolbox in ROS 2 (Step by Step)
  • Tuning slam_toolbox: Key Parameters Explained
  • SLAM vs AMCL: When to Use Each
  • KISS-ICP: Modern 3D LiDAR SLAM Without the Config Hell
  • Common SLAM Errors and How to Fix Them
  • Active SLAM: Where Should the Robot Explore Next?
  • Neural SLAM and Foundation Models (2025–2026)
  • How Visual SLAM Fits Into the Bigger Picture