A reproducibility first ROS 2 SLAM stack for a differential drive robot with Gazebo ground truth, ATE and RPE trajectory evaluation, loop closure analysis, rosbag regression, and resource profiling.
Important
Evidence boundary: software contracts and the ROS 2 package build are CI verified. A Gazebo simulation benchmark completed successfully on 17 September 2026 at source commit ec9ceb2e, with an archived trajectory, metrics and rosbag. The measured results below are for that specific simulation run, not a fresh benchmark of current main. Rosbag replay and physical LiDAR/encoder validation remain unverified.
Architecture · Benchmark Runbook · Trajectory Metrics · Release Gate
| Surface | Evidence | Status |
|---|---|---|
| ROS package and static contracts | CI build and configuration checks | ✅ Verified |
| Deterministic benchmark tooling | Driver, capture, evaluation, thresholds, scenarios | ✅ Implemented |
| Gazebo ground truth path | Separate world pose reference topic | ✅ Implemented |
| ATE and RPE tooling | Metric scale SE(2) trajectory evaluation | ✅ Implemented |
| Loop closure evaluation | Revisit and long horizon error tooling | ✅ Implemented |
| Rosbag regression workflow | Record and replay scripts | ✅ Implemented |
| Gazebo runtime benchmark | Successful CI simulation run #35179777748 at ec9ceb2e |
✅ Captured (one run) |
| Published ATE and RPE result | Measured trajectory, metrics and provenance | ✅ Simulation only |
| Rosbag replay | Replay of captured benchmark inputs with observed result | ◐ Pending |
| Physical LiDAR and encoder validation | Hardware evidence | ◐ Not claimed |
A green build alone is not proof of a simulation benchmark. This repository also archives one actual successful Gazebo simulation execution, but does not extrapolate its results to hardware or rosbag replay.
17 September 2026 · scenario gazebo_loop_square · commit ec9ceb2e · 444 samples · 47.4 s evaluated.
| ATE RMSE | RPE translation RMSE | RPE yaw RMSE |
|---|---|---|
| 0.023267 m | 0.024134 m | 0.038984 rad |
Measured evidence and reproduction notes → · Successful workflow → · Download archived telemetry/rosbag →
The plot is a data-derived visualization, not a screen recording of Gazebo. This particular run passed benchmark thresholds and the manifest validator. Rosbag replay, current-main rerun and physical hardware validation remain pending.
flowchart LR
CMD[/cmd_vel/] --> BRIDGE[ros_gz_bridge]
BRIDGE --> DRIVE[Gazebo DiffDrive]
DRIVE --> ODOM[/wheel odom/]
GZ[Gazebo world] --> LIDAR[360° LiDAR]
LIDAR --> SCAN[/scan/]
GZ --> GT[/ground_truth/odom/]
SCAN --> SLAM[slam_toolbox]
ODOM --> SLAM
SLAM --> MAP[/map + map→odom/]
MAP --> REC[trajectory recorder]
GT --> REC
REC --> METRICS[ATE · RPE · loop error]
The key design choice is that Gazebo wheel odometry is not treated as ground truth. A separate world pose publisher provides the reference trajectory used for evaluation.
| Surface | What it proves or enables |
|---|---|
simulation/ |
Gazebo world, robot model, and physics facing configuration |
tools/trajectory_metrics.py |
Best fit SE(2) ATE and fixed delta RPE evaluation |
tools/loop_closure_metrics.py |
Revisit and long horizon loop closure scoring |
scripts/record_benchmark.sh |
Repeatable benchmark rosbag capture |
scripts/replay_benchmark.sh |
Regression replay path |
docs/BENCHMARK_EVIDENCE_RUNBOOK.md |
Exact evidence producing benchmark procedure |
docs/RELEASE_READINESS.md |
First tagged release gate and allowed claims |
Many SLAM demos stop at:
The map looks good.
This repository asks a stricter question:
Can the result be reproduced, measured against simulator ground truth, replayed, and clearly separated from unverified hardware claims?
The project is built around measurable robotics evidence rather than screenshot only success.
- Gazebo physics world with loop rich indoor geometry
- differential drive physics with wheel derived odometry
- 360 degree noisy simulated LiDAR
- separate Gazebo world pose publisher exposed as
/ground_truth/odom - explicit ROS to Gazebo bridge configuration
- lifecycle managed
slam_toolboxmapping and localization - explicit
map -> odom -> base_footprint -> base_link -> laser_linkownership - trajectory recording against simulator ground truth
- occupancy map quality checks
- deterministic square loop benchmark driver
- best fit metric scale SE(2) ATE
- fixed delta RPE
- loop closure revisit scoring
- machine readable benchmark thresholds and scenarios
- CPU and RSS process profiling
- repeatable rosbag record and replay workflow
- simulation and hardware claims are kept separate
- benchmark artifacts are generated through documented runbooks
- incomplete runtime evidence is marked as pending instead of inferred from CI success
- ROS 2 Lyrical Luth
- Gazebo Jetty
Run the simulator:
ros2 launch slam_robot_ros2 simulation.launch.py headless:=falseRun headless:
ros2 launch slam_robot_ros2 simulation.launch.py headless:=trueRun SLAM with trajectory recording and the deterministic benchmark driver:
ros2 launch slam_robot_ros2 simulation_mapping.launch.py \
headless:=true \
record_trajectory:=true \
run_benchmark_driver:=trueFor the evidence producing procedure, follow docs/BENCHMARK_EVIDENCE_RUNBOOK.md.
The trajectory recorder produces:
stamp_s,gt_x,gt_y,gt_yaw,est_x,est_y,est_yaw
Evaluate trajectory quality:
python tools/trajectory_metrics.py artifacts/trajectory.csv \
--output artifacts/trajectory-metrics.json
python tools/loop_closure_metrics.py artifacts/trajectory.csv \
--output artifacts/loop-metrics.jsonATE uses rigid SE(2) alignment only. No scale correction is applied because a metric LiDAR SLAM system should preserve scale.
Record a benchmark bag:
bash scripts/record_benchmark.sh gazebo_loop_squareThe capture includes:
/scan · /odom · /ground_truth/odom · /tf · /tf_static · /map · /diagnostics · /clock
Replay it:
bash scripts/replay_benchmark.sh artifacts/bags/gazebo_loop_squareThe goal is to preserve a repeatable input path for regression and tuning rather than relying on one live simulation session.
python tools/process_profile.py \
--duration 90 \
--match slam_toolbox \
--match gz \
--match ros_gz_bridge \
--output artifacts/resource-profile.jsonOnly compare resource results under the same host, scenario, rendering mode, and software configuration.
The repository already contains an evidence campaign path rather than expecting results to be assembled manually.
Relevant entry points:
scripts/run_gazebo_benchmark.shscripts/run_simulation_evidence_campaign.shscripts/evaluate_benchmark.shevidence/README.mddocs/BENCHMARK_EVIDENCE_RUNBOOK.mdbenchmarks/scenarios.yamlbenchmarks/thresholds.yaml
A benchmark result should preserve the exact commit, environment, configuration, scenario, raw trajectory, metric outputs, and relevant failure information.
Physical LiDAR and encoder performance is not inferred from simulation.
The repository already separates hardware bringup and hardware evidence work through:
docs/HARDWARE_BRINGUP.mddocs/HARDWARE_EVIDENCE.mddocs/LIDAR_EXTRINSIC_CALIBRATION.mddocs/WHEEL_ODOMETRY_CALIBRATION.mdscripts/hardware_preflight.shscripts/record_hardware_evidence.sh
Hardware claims should appear only after those evidence gates are actually satisfied.
- Gazebo Simulation
- Mapping Workflow
- Localization Workflow
- Trajectory Evaluation
- Loop Closure Benchmark
- Performance Benchmark
- Rosbag Benchmark
- Resource Profiling
The repository contains a first release gate in docs/RELEASE_READINESS.md and a copy ready draft in docs/RELEASE_NOTES_DRAFT.md.
A conservative v0.1.0 software-reference release is already published. The measured benchmark values linked above come from the independent 17 September simulation workflow at ec9ceb2e, and should not be mistaken for measurements of the release tag itself or for physical hardware results.
Useful contributions include:
- Gazebo benchmark reproducibility
- SLAM Toolbox tuning with evidence
- trajectory and loop metric improvements
- rosbag regression coverage
- diagnostics and failure mode tooling
- hardware bringup documentation
- real LiDAR and encoder evidence once available
If this project is useful to your robotics work, star the repository or follow VivekVRobo to track the benchmark and hardware validation milestones.
MIT. See LICENSE.