• Install • ICRA24 Paper • IJRR26 Paper • Contact Us
Effectively Detecting Loop Closures using Point Cloud Density Maps.
- Include the following snippet in your project's
CMakeLists.txt:
set(USE_SYSTEM_EIGEN3 ON CACHE BOOL "use system eigen3")
set(USE_SYSTEM_OPENCV ON CACHE BOOL "use system opencv")
include(FetchContent)
FetchContent_Declare(
map_closures
GIT_REPOSITORY https://github.com/PRBonn/MapClosures.git
GIT_TAG main
SOURCE_SUBDIR cpp
)
FetchContent_MakeAvailable(map_closures)
You can trigger the automatic installation of the dependencies by playing around with the options in the first three lines of the snippet.
- Link MapClosures against your library or executable:
target_link_libraries(my_target PUBLIC map_closures)- The following include directive in your source code file will provide access to the core API of MapClosures:
#include <map_closures/MapClosures.hpp>pip install map-closures
map_closure_pipeline --dataloader <dataloader_name> --config <path_to_config_file> <data_dir> <results_dir>The -v flag can be passed to launch a visualizer and -o flag can be used to perform a pose graph optimization at the end of the pipeline with all the closures detected.
The odometry poses, optimized poses, HBST database and other metadata will be dumped in the <results_dir>/<dataset_name>_results/<timestamp>/ folder.
The following command will provide more details about the various options in our pipeline:
map_closure_pipeline --help
map_closure_pipeline --helpinter_session_map_closure_pipeline --dataloader <dataloader_name> --config <path_to_config_file> <query_data_dir> <reference_results_dir>The -v flag can be passed to launch a visualizer and -o flag can be used to perform a pose graph optimization at the end of the pipeline with all the inter-session closures detected w.r.t. the optimized reference session poses.
The query session odometry poses, optimized poses, and other metadata will be dumped in the <reference_results_dir>/<dataset_name>_inter_session_results/<timestamp>/ folder.
The following command will provide details about how to use our inter-session pipeline:
inter_session_map_closure_pipeline --help
inter_session_map_closure_pipeline --helpIf you use this library for any academic work, please cite our original papers.
@inproceedings{gupta2024icra,
author = {S. Gupta and T. Guadagnino and B. Mersch and I. Vizzo and C. Stachniss},
title = {{Effectively Detecting Loop Closures using Point Cloud Density Maps}},
booktitle = {IEEE International Conference on Robotics and Automation (ICRA)},
year = {2024},
codeurl = {https://github.com/PRBonn/MapClosures},
}
@article{gupta2026ijrr,
author = {Saurabh Gupta and Tiziano Guadagnino and Benedikt Mersch and Niklas Trekel and Meher V. R. Malladi and Cyrill Stachniss},
title = {{Efficiently Closing Loops in LiDAR-Based SLAM Using Point Cloud Density Maps}},
booktitle = {The International Journal of Robotics Research (IJRR)},
volume = {0},
number = {0},
year = {2026},
codeurl = {https://github.com/PRBonn/MapClosures},
}As we decided to continue the development of MapClosures beyond the scope of the papers, we created a git tag so that researchers can consistently reproduce the results of the publication. To checkout at this tag, you can run the following:
git checkout ICRA2024
git checkout gupta2026ijrrOur development aims to push the performances of MapClosures above the original results of the paper.
This repository is heavily inspired by, and also depends on KISS-ICP
Checkout KISS-SLAM and Retro-SLAM.

