slam-toolbox-online

Configure SLAM Toolbox online synchronous mode parameters for real-time ROS2 laser mapping.

Updated Aug 16, 2026
One-click install
npx skills add https://github.com/three1324/yeonjinautomotive --skill slam-toolbox-online-three1324
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: slam-toolbox-online
Source: https://github.com/three1324/yeonjinautomotive/tree/main/.claude/skills/slam-toolbox-online
Command: npx skills add https://github.com/three1324/yeonjinautomotive --skill slam-toolbox-online-three1324

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up SLAM Toolbox for real-time mapping requires tuning dozens of interdependent YAML parameters for scan matching, loop closure, and the Ceres solver, and misconfiguration leads to drift, segfaults, or maps that lag behind the robot. ## Core Features & Use Cases - Complete parameter reference: Covers frame/topic setup, motion thresholds, correlation and loop-closure scan matchers, Ceres solver options, and interactive mode. - Ready-to-use YAML: Provides a complete online sync configuration that can be adapted directly to a robot. - Mapping to localization workflow: Explains how to serialize a pose graph and restart in localization mode against the saved map. - Use Case: A robotics engineer bringing up a Jetson-based ROS2 Humble robot with a YDLidar needs a working SLAM configuration; this Skill supplies the full parameter set plus guidance on loop closure tuning and stack size for large maps. ## Quick Start Ask the assistant to generate a SLAM Toolbox online sync YAML configuration for a robot publishing LaserScan on /scan with odom and base_link frames.

Frequently Asked Questions about slam-toolbox-online

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure SLAM Toolbox for online real-time mapping?

Use the slam_toolbox::OnlineSyncSlamToolbox plugin and set odom_frame, map_frame, base_frame, and scan_topic to match your robot. The node publishes the map to odom transform while your robot must already publish odom to base_link.

What is the difference between online sync and async SLAM Toolbox modes?

OnlineSyncSlamToolbox processes each laser scan as it arrives for real-time mapping. OnlineAsyncSlamToolbox queues scans and processes them in a background thread, which helps when the CPU cannot keep up but the map may lag behind reality.

How do I tune loop closure in SLAM Toolbox?

Adjust loop_search_space_dimension, loop_match_minimum_response_coarse (0.35), and loop_match_minimum_response_fine (0.45) to control detection sensitivity. A successful loop closure triggers full graph optimization that redistributes accumulated drift.

Why does SLAM Toolbox segfault on large maps?

The Ceres solver can use deep recursion on large pose graphs, exhausting the default stack. Increase stack_size_to_use to 40000000 (40MB) or more, and use SPARSE_NORMAL_CHOLESKY as the linear solver for maps with over 1000 nodes.

How do I switch SLAM Toolbox from mapping to localization mode?

Serialize the graph in interactive mode, then restart with mode set to localization and map_file_name pointing to the saved map without extension. The node then scan-matches against the loaded graph without adding new nodes.

How do I reduce CPU load during SLAM Toolbox mapping?

Increase minimum_time_interval between processed scans and raise minimum_travel_distance and minimum_travel_heading so scans are only added after meaningful motion. These thresholds also prevent graph bloat when the robot is stationary.