English | 中文
A browser console for LiDAR SLAM mapping, map management, Nav2 autonomous navigation and trajectory evaluation, running on ROS 2 Humble with a Gazebo Fortress simulation. One workspace takes you from an empty world or a recorded rosbag2 to a saved map, a navigation run and an evo report.
It was built for the bachelor thesis LiDAR-Based SLAM Mapping and Autonomous Navigation for Mobile Robots (Harbin Engineering University). The interface supports Chinese and English, as well as light and dark themes.
Video tour (2:19, watch on Bilibili or download the MP4, 49 MB): mapping the office world with FAST-LIO2, saving the map, a three-waypoint Nav2 mission in the warehouse, the monitor and evaluation pages. Captions in Chinese and English.
| Page | What it does |
|---|---|
| Mapping | Start a world (office, warehouse, or your own uploaded SDF / ZIP), run FAST-LIO2 (with optional LiDAR-only and ground-vehicle constraint switches) or GLIM, inspect and tune parameters in the Parameters dialog, watch the voxel map grow in 3D, drive with an on-screen joystick / WASD or a waypoint route, save the map |
| Playback | Play a rosbag2 bag (or a chosen part of it, 0.5–8×) into FAST-LIO2, GLIM or GLIM (LiDAR only); auto-probe and configure real-robot topics, per-point time fields, acceleration units and extrinsics in the browser (Sensor setup), skip shaking starts (start_offset), record raw scans (Save raw scans), tune derived / user SLAM parameters, upload and trash bags |
| Maps | Browse saved maps (3D point cloud + 2D grid side by side), auto-generate a navigable 2D grid when importing a cloud-only .pcd, regenerate the 2D grid by cloud projection or Scan evidence (filtering moving objects), edit the grid with a brush, trash and restore |
| Navigation | Load a map, start the simulation and Nav2 (NavFn / Smac / Theta* planners and DWB / MPPI controller variants, AMCL or ground-truth localizer switch), set the initial pose and goals on the map, run single or batch repeated multi-waypoint missions, overlay global / local costmaps, change the speed factor, switch between point cloud and solid world model, and link or generate a world for maps built from bags |
| Evaluation | Separate records for mapping, navigation and playback; evo ATE / RPE, navigation metrics, start-to-end / closure / reference-odometry deviation and SLAM lag for playback; Side by side or Stacked view; multi-run and batch comparisons with mean ± std, user-parameter badges, CSV / PNG export |
| Monitor | Processes started from the console, topic rates against expected rates, TF chain, node list, how each process was stopped |
| Plugins | Manage installed plugins (enable / disable on next start, manifest-driven settings, per-plugin isolated Python environments and background jobs) and install extensions from the Plugin market (slam-console-plugins GitHub index or local .zip). Developer docs: robot_console/docs/plugins.md, robot_console/docs/plugin-guidelines.md and robot_console/examples/plugins/hello_console. Shipped plugins: AI assistant (resizable chat drawer, multi-profile model service manager for OpenAI-compatible / Anthropic endpoints, model / reasoning-effort / access pickers, read-only queries and approval-gated experiment / evaluation tools), Bag converter (ROS 1 .bag to ROS 2 sqlite3 / MCAP with Livox CustomMsg conversion via rosbags), Dynamic object removal (DUFOMap), and Ground segmentation (Patchwork++) |
Long-running operations (2D grid regeneration, evo evaluation, relative trajectory comparison, report export) run through the Background tasks drawer in the header so their progress survives page navigation, can be recovered or retried, and finished records can be removed or cleared. Monitor and Plugins live in a bottom tool group of the sidebar alongside the light / dark appearance toggle.
Every run is recorded: mapping and playback runs keep trajectories, lag logs and the effective layered SLAM
configuration (slam_config); navigation runs keep per-goal results, AMCL error over time and figures. A
saved map is a folder with the full point cloud, a Nav2 map.yaml / map.pgm, figures and metadata.
Browser (Vue 3, Three.js, ECharts) <-- HTTP + WebSocket, 127.0.0.1:8000 --> robot_console (rclpy + FastAPI)
| ROS 2 topics, services, actions
Gazebo Fortress / FAST-LIO2 or GLIM / Nav2 + AMCL / evo
- The backend starts the simulation, SLAM and navigation as separate process groups from a whitelist
(
robot_console/config/stacks.yaml); the page can only name a stack, never pass a command line. - SLAM parameter files are assembled per run in layers (
base -> input -> derived -> options -> console -> userfromrobot_console/config/slam/) and recorded inrun.json. - Point clouds are voxelized in the backend and streamed as binary deltas, so the browser draws a large map at full frame rate (rviz2 under WSLg managed about 3 fps with the accumulated map).
- Teleoperation stops the robot after 0.5 s without commands and when the page disconnects; E-STOP sends zero velocity, cancels Nav2 goals and stops the processes that drive the robot.
Requirements: Ubuntu 22.04 x86_64 (native or WSL2 on Windows 10/11), a normal user with sudo, 16 GB RAM
recommended, about 10 GB free disk.
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
git clone https://github.com/Leonhart999/slam-autonav-console.git
bash slam-autonav-console/robot_console/install/install.sh # add --cn for mirrors in mainland China
bash slam-autonav-console/robot_console/install/start_console.sh # starts the console, opens http://localhost:8000The installer sets up ROS 2 Humble, Gazebo Fortress, Nav2, Livox-SDK2, FAST-LIO2 (pinned commit plus a small patch), two Python environments (console and evo) and the web frontend, then runs a self-check. It skips steps that are already done, so it can simply be run again after a failure. Options, offline installation and configuration are described in robot_console/README.md.
Alternatively, the whole system runs in one Docker container: docker compose build and then docker compose up -d
(add CN=1 in mainland China). See docker/README.md. It has been tested on WSL2 with Docker
Engine; the Navigation page has not been tested in the container yet.
First run: on the Mapping page pick the office world, start the simulation, start FAST-LIO2, press Start under waypoints and save the map when the loop is done. Then pick the map on the Navigation page, start the simulation and navigation there, and click a goal on the 2D grid.
-
GLIM (factor-graph SLAM with loop closure): install
ros-humble-glim-rosfrom the author's PPA, see https://koide3.github.io/glim/installation.html. The base configuration for the simulated 16-line lidar is insim_robot/config/glim; the console applies layered overrides on top of it (robot_console/config/slam/glim.yaml). -
HKUST 4F west world (long corridors, built from the BIM of the SLABIM dataset): only
BIM.zip(96 MB) of the dataset is needed. The SharePoint links in the SLABIM GitHub README no longer work; take it from the dataset's Hugging Face page instead (in mainland China use the mirrorhttps://hf-mirror.com/datasets/BobH62/SLABIM/resolve/main/BIM.zip):wget https://huggingface.co/datasets/BobH62/SLABIM/resolve/main/BIM.zip python3 -m zipfile -e BIM.zip SLABIM # gives SLABIM/BIM/4F/mesh/*.ply bash sim_robot/tools/make_hkust_models.sh SLABIM colcon build --packages-select sim_robotThe scene appears on the Mapping page afterwards.
-
Offline planar loop back-end (post-processing for FAST-LIO2 recordings on flat single-floor maps): install
robot_console/install/requirements-loop.txtinto a separate Python environment so system GLIM / GTSAM stays untouched, then usefastlio_loop_record,fastlio_loopandfastlio_loop_export. See robot_console/docs/fastlio-loop-backend.md.
Machine-specific settings go in ~/.config/robot_console/console.yaml; only the keys you change are needed
(example: robot_console/config/user_console.example.yaml). Maps, run records, logs, bags, browser-created
sensor profiles, parameter overrides and exports live under ~/robot_console_data by default.
| Folder | ROS 2 package | Contents |
|---|---|---|
robot_console/ |
robot_console |
the console: backend, frontend (web/), plugin system and shipped plugins (plugins/), layered SLAM specs, installer, tests |
sim_robot/ |
sim_robot |
Gazebo worlds, the diff-drive robot (16-line lidar, IMU, ground truth), cloud adapter, waypoint driver, FAST-LIO2 / GLIM configuration |
lidar_nav/ |
lidar_nav |
Nav2 launch and parameter variants, 3D → 2D map projection, navigation test tools |
docker/ |
— | Dockerfile, entrypoint, container configuration and offline prefetch guide |
- Simulation first: navigation runs closed-loop in Gazebo, and driving a real robot would need its own
stacks and topic configuration. Real-robot data can be mapped from a bag on the Playback page (sqlite3
storage; MCAP needs
ros-humble-rosbag2-storage-mcap) and navigated in a world generated from the map, where the simulated lidar sees ideal walls. - Sensor profiles created in the browser configure FAST-LIO2 and GLIM (with IMU);
GLIM (LiDAR only)does not use sensor profiles yet. Scan-end-stamped lidars with negative per-point offsets (e.g. Velodyne) are warned during probing and clamped to 0 in the sensor adapter. - The offline planar loop back-end assumes an approximately horizontal single floor and runs via CLI rather than an online button in the UI.
- No offline trajectory import yet.
- Tested on Ubuntu 22.04 + ROS 2 Humble (x86_64) only.
- Saving a map with GLIM stops the GLIM run, because GLIM writes its optimized map on exit.
| Component | Licence | How it gets onto your machine |
|---|---|---|
| FAST_LIO, ikd-Tree | GPL-2.0 | downloaded by the installer; robot_console/install/patches/fast_lio-thesis.patch switches the cloud subscription to reliable QoS and adds a LiDAR-only mode, ground-vehicle constraint, ring bounds check and deeper IMU queue |
| Livox-SDK2, livox_ros_driver2 | MIT | downloaded by the installer |
| Warehouse, shelf, pallet and cart models (Gazebo Fuel; OpenRobotics, MovAi) | CC BY-NC 4.0 / CC BY-NC-ND 4.0 | downloaded by sim_robot/tools/fetch_fuel_models.sh; non-commercial use only |
| HKUST 4F building model (SLABIM, Huang et al., ICRA 2025) | not stated by the dataset | built from your own SLABIM download; not included |
| GLIM | MIT | optional, installed from the author's PPA |
| evo | GPL-3.0 | installed into its own virtual environment by the installer |
The code in this repository is released under the MIT licence (see LICENSE).



