Software
mola_sm_loop_closure
By The MOLA SLAM framework, Spain (checked on github.com/MOLAorg (opens in a new tab)), from github.com/MOLAorg/mola_sm_loop_closure (opens in a new tab)
- Navigation and mapping
- Tool
- GPL-3.0-only
An offline loop-closure engine that corrects keyframe poses in MOLA simplemap files by detecting loops and re-optimising the map, then writes the result back to disk.
Facts
- GitHub stars
- 5read on 28 Nov 2026
- Last update
- 22 Nov 2026Newest commit on develop
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Advanced
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- GPL-3.0-only (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (GPL-3.0-only) at commit 6bfbde0 (opens in a new tab), on 28 Nov 2026.
- Commercial use
- Yes
Copyleft: Modified source must be published.
At a glance
- What it is
- Offers two algorithms: SimplemapLoopClosure for long maps with drift, grouping keyframes into submaps and running point-cloud ICP between them.
- FrameToFrameLoopClosure runs frame-to-frame ICP with a GNC graph optimizer, suited to GNSS-augmented datasets or quick re-optimisation.
- Ships YAML pipelines for 3-D LiDAR (GICP and ICP), 2-D LiDAR and frame-to-frame 3-D LiDAR GICP.
- Optional planar-world constraints, GNSS factors with uncertainty thresholds, and IMU gravity-alignment factors can be enabled in the YAML.
- Manual loop constraints can be specified by UNIX timestamp pairs, optionally trusted as inliers.
- Optional KISS-Matcher global registration can seed the ICP initial guess for loop candidates.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- GPL-3.0-only. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 22 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/MOLAorg/mola_sm_loop_closure (opens in a new tab)
- The version Robotheca read6bfbde0 (opens in a new tab)
- Latest releasemola_sm_loop_closure 1.5.1 (22 Nov 2026)
Robotheca read the repository at two versions: the summary at 34f9b65 and the facts and the README at 6bfbde0 (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by The MOLA SLAM framework, at commit 6bfbde0, under GPL-3.0-only (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
(opens in a new tab) (opens in a new tab) (opens in a new tab) (opens in a new tab)
mola_sm_loop_closure
Offline loop-closure engine for MOLA CSimpleMap files. Given an input
simplemap produced by any MOLA odometry front-end, the package re-optimises
all keyframe poses by detecting and closing loops, then writes the corrected
simplemap back to disk.
Two algorithms
| Algorithm | Class | Best for |
|---|---|---|
| SimplemapLoopClosure | mola::SimplemapLoopClosure | Long maps with noticeable drift; groups keyframes into submaps and runs heavy point-cloud ICP between submap pairs |
| FrameToFrameLoopClosure | mola::FrameToFrameLoopClosure | GNSS-augmented datasets or quick re-optimisation; runs frame-to-frame ICP with a GNC graph optimizer |
CLI usage
# SimplemapLoopClosure (default algorithm):
mola-sm-lc-cli -i in.simplemap -o out.simplemap \
-p pipelines/loop-closure-lidar3d-gicp.yaml
# FrameToFrameLoopClosure:
mola-sm-lc-cli -i in.simplemap -o out.simplemap \
-a mola::FrameToFrameLoopClosure \
-p pipelines/loop-closure-f2f-lidar3d-gicp.yaml
Available pipelines
| YAML file | Sensor type | Algorithm |
|---|---|---|
loop-closure-lidar3d-gicp.yaml | 3-D LiDAR (GICP) | SimplemapLoopClosure |
loop-closure-lidar3d-icp.yaml | 3-D LiDAR (point-to-point ICP) | SimplemapLoopClosure |
loop-closure-lidar2d.yaml | 2-D LiDAR | SimplemapLoopClosure |
loop-closure-f2f-lidar3d-gicp.yaml | 3-D LiDAR (GICP) | FrameToFrameLoopClosure |
Key YAML knobs
SimplemapLoopClosure
submap_max_absolute_length/submap_min_absolute_length: controls submap granularity.assume_planar_world: trueenables annealed soft planar constraints (z, roll, pitch).planar_world_initial_sigma_z,planar_world_initial_sigma_ang,planar_world_annealing_rounds: tune the annealing schedule.planar_world_hard_flatten: truerestores the old hard-flattening behaviour.
use_gnss: true/gnss_add_horizontality: true: GNSS-assisted global alignment.gnss_factor_strategy: "submap"(default, scalable) or"per_kf"(sensor-pose-aware, larger graph).gnss_max_uncertainty_horiz(default20.0m) : reject GPS readings whose horizontal ENU uncertainty (√(σ_E²+σ_N²)) exceeds this threshold.gnss_max_uncertainty_vert(default40.0m) : reject GPS readings whose vertical ENU uncertainty (σ_U) exceeds this threshold.- Stats on accepted/rejected GNSS readings are printed at the INFO log level after processing.
use_imu_gravity: true/imu_gravity_sigma_deg: IMU-derived gravity-alignment factors added in stage 1.
FrameToFrameLoopClosure
lc_candidate_strategy:DISTANCE_STRATIFIED(default),PROXIMITY_ONLY, orMULTI_OBJECTIVE.assume_planar_world: true: planar-world annealing (subset of SM options; IMU-gravity options are not exposed byFrameToFrameLoopClosure::Parameters).use_gnss: true: per-keyframe GNSS factors (FactorGnssEnu).gnss_max_uncertainty_horiz(default20.0m) : reject GPS readings whose horizontal ENU uncertainty exceeds this threshold.gnss_max_uncertainty_vert(default40.0m) : reject GPS readings whose vertical ENU uncertainty exceeds this threshold.
manual_loop_constraints: list of hand-specified loop closure edges (by UNIX timestamp pair). Each entry supports:timestamp_i,timestamp_j: UNIX timestamps identifying the two keyframes.sigma_xyz: positional uncertainty [m].trust_as_inlier(defaultfalse): iftrue, the constraint is added to the GNC set of known inliers and will not be downweighted by the robust optimizer.
use_kiss_matcher: true: use KISS-Matcher (opens in a new tab) global registration to seed the ICP initial guess for each loop-closure candidate (default:false; requires thethird_party/kiss-matchersubmodule to be populated).kiss_matcher_resolution(default1.0m) : voxel size for KISS-Matcher feature extraction; controlsnormal_radius ≈ 3×andfpfh_radius ≈ 5×.kiss_matcher_layer(default"points_to_register_points") : name of themp2p_icp::metric_map_tlayer whose points are fed into KISS-Matcher.
global_registration: initial guess of each loop-closure ICP:none(the graph estimate),kiss(KISS-Matcher, asuse_kiss_matcher) orbev(default:kissifuse_kiss_matcher, elsenone).bev: a gravity-aligned 4-DoF search of our own (global_registration::bev_correlation()): both keyframe clouds are leveled with the roll and pitch of their poses, projected into bird's eye view grids of the cell vertical extent and matched by FFT cross-correlation, coarse to fine in yaw; z from the ground heights in the overlap. It needs keyframe poses with absolute roll and pitch (LiDAR-inertial odometry). Parameters inbev_correlation:(grid resolution and range, yaw steps,min_score,min_ambiguity_ratio).global_registration_layer(default"points_to_register_points") : layer fed intobev.skip_ambiguous_candidates(defaulttrue) : reject a candidate whosebevmatch cannot be told apart from a clearly different one (repetitive structure), instead of running ICP from the graph estimate.
See the online tutorial (opens in a new tab) for a step-by-step example.
License
Copyright (C) 2018-2026 Jose Luis Blanco jlblanco@ual.es (opens in a new tab), University of Almeria
This package is released under the GNU GPL v3 license as open source, with the main intention of being useful for research and evaluation purposes. Commercial licenses available upon request (opens in a new tab).
Contributions require acceptance of the Contributor License Agreement (CLA).
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.