3DOM-FBK/COLMAP_SLAM
Deep learning-based Visual-SLAM based on COLMAP
What it solves
COLMAP-SLAM addresses the need for accurate camera trajectory estimation from image sequences, a core component in robotics, autonomous driving, and photogrammetry. It provides a ready-to-use pipeline that takes multi-camera images, computes the camera's motion over time, and outputs the trajectory in a standard COLMAP format. An optional post-processing step uses GNSS data to refine the trajectory, improving global consistency.
How it works
The main entry point is cslam.py, which processes images using colmap-odometry (included as a pinned git submodule). The images must be organised in one folder per camera (e.g., cam0, cam1). The tool estimates the camera-to-world pose for each frame and saves it as trajectory.txt (with translation and quaternion orientation). If a GNSS file is supplied, the odometry output is rigidly aligned to the GNSS coordinates, then a pose graph is built and optimized using gtsam, producing trajectory_optimized.txt. Live trajectory plotting (top view, X–Z plane) is available with the --gui flag. Installation uses uv and expects PyTorch for GPU support.
Who it's for
This project is aimed at researchers, students, and developers working on visual odometry, SLAM, and autonomous driving. It is especially suited for those who need a straightforward, scriptable baseline for multi-camera trajectory estimation, and who want to experiment with GNSS-based refinement.
Highlights
- Integrates
colmap-odometryas a pinned submodule, ensuring reproducibility. - Supports multi-camera setups with a simple folder structure.
- Outputs standard COLMAP-format trajectory files, easy to use in other tools.
- Optional GNSS pose-graph optimisation using gtsam, with configurable uncertainty parameters.
- Live trajectory visualisation through
--gui. - Clean installation via
uvand editable mode for development.
Related
- Project
- Project
- Project
- Project