In a nutshell
visloc-rs turns camera images (optionally with an IMU) into camera poses, 3D maps and photorealistic scenes, and localizes new images against those maps. Everything is Rust: no C++, OpenCV or CUDA toolchain to build. GPU work runs on any GPU through wgpu. Models are read and written in COLMAP format, so results plug into existing tools.
| What | Headline result (measured, real data) | vs |
|---|---|---|
| Photo SfM (unordered images) | ETH3D Electro 1,200 images: 3.46× faster, 25% lower camera-centre error; 9,996 / 10,008 cameras registered across all ten ETH3D many-view scenes | COLMAP 3.9 CPU |
| GPU SfM (video frames) | EuRoC: faster on 8/8 sequences (1.4–7.5×), more accurate on 4/8, equal on 1; COLMAP breaks on MH_05 (194 cm vs 2.6 cm) | COLMAP 4.1 CUDA |
| Stereo-inertial VI-SLAM (Basalt port + online mapper) | Real time on 11/11 EuRoC sequences on the dev machine (1.06–1.68×, thin margin on the slowest); beats ORB-SLAM3 on 9/11 | ORB-SLAM3, Basalt |
| Egocentric VI-SLAM (Project Aria, both SLAM cameras + IMU) | LaMAria leaderboard (test set, all 5 tracks): mean Score 57.8, sixth; five methods are ahead (66.7–75.9). On the ten training sequences 64.3, and 62.0 causal and in real time on 4 CPU cores | Aria's SLAM, SLAM Dunk |
| Metric objects (mono camera + IMU + a 2D detector) | KITTI raw, against the 3D boxes: car heights 11 % off with mono + IMU (110 cars), 6 % with stereo + IMU; pedestrians 7 cm | KITTI tracklets |
| Photos → 3D Gaussian Splatting + mesh | Faster than brush on 5/5 benchmark scenes, PSNR within 0.05 dB on 4 | brush 0.3 |
| Localization against a prebuilt map | OpenLORIS robot rig: 98.96% of 1,250 held-out frames localized, median 2.9 mm; simulated house: 38 ms / frame | — |
| Stereo / RGB-D VO | KITTI 00 1.23 m and 09 2.07 m (ORB-SLAM2: 1.3 m / 3.2 m); TUM fr1_xyz 1.4 cm | ORB-SLAM2 |
Where it still loses, measured the same way: COLMAP CUDA is more accurate on 3 of the 8 EuRoC sequences and registers more of the blurred frames; ORB-SLAM3 wins 2 of 11 EuRoC sequences (MH_04, MH_05); on LaMAria's test set five methods are ahead, from Aria's own closed-source SLAM (75.9) to RedComet (66.7), against 57.8; OpenLORIS 10k rig SfM is not yet at COLMAP's RMSE. Every number above links to a benchmark doc with the commands to reproduce it.
Contents
- Sensor support
- Try it
- Structure from Motion — ETH3D, EuRoC GPU SfM vs COLMAP CUDA
- Photos to splat and mesh
- Visual-inertial SLAM
- Localize against a map
- Use from Python and ROS 2
- More results — KITTI, TUM RGB-D, sequential SfM
- Documentation
Sensor support
What each sensor setup can do today. Benchmarked means a measured real-data result is in the repo. Experimental means the code runs but the docs record open gaps.
| Sensor setup | Tasks | Status | Headline result | Entry point |
|---|---|---|---|---|
| Monocular, unordered photos | SfM, 3DGS, mesh | Benchmarked | ETH3D Electro 1,200: 3.46× faster than COLMAP CPU, 3.50 vs 4.68 cm | unordered_sfm_demo, gsplat_photos |
| Monocular video | SfM | Benchmarked | EuRoC: faster than COLMAP 4.1 CUDA on 8/8 sequences, more accurate on 4/8 | gsplat_euroc |
| Posed photos (a COLMAP sparse model) | Dense MVS | Experimental | ETH3D high-res training, 13 scenes at 3200 px on one L4: F1 83.7% at 2 cm in 74 min (ACMMP 83.42%), 4× faster than ACMMP's code on the same GPU; 81.5% end to end from the photos | visloc-mvs example mvs (notes) |
| Monocular video | VO (DPVO port) | Experimental | MH_01 prefix 0.16 m, about 2× DPVO's published error; CPU only | euroc_dpvo_vo_demo |
| Monocular + IMU | VIO (Basalt port) | Experimental | TUM-VI room1–6: metric scale within 3.4% (median 1.3%), ATE 0.02–0.19 m, at most 0.014 m above stereo + IMU. EuRoC, all 11 with the opt-in averaged initial tilt (config.vio_init_accel_average_s: 0.5): with the online mapper (loop closure, global BA) mean ATE 0.062 m (VIO alone 0.139 m; ORB-SLAM3 mono-inertial 0.043 m), lower than ORB-SLAM3 on 5/11 |
basalt_euroc_online_slam_demo --mono, basalt_euroc_vio_demo --mono (notes) |
| Monocular + IMU, plus a 2D detector | Object height, distance and speed in metres | Experimental | KITTI raw, 5 drives: car heights 11 % off (median, 110 cars), distances 19 %; moving cars' speeds 2–3 m/s off | objects_metric_offline (notes) |
| Stereo | VO / SLAM | Benchmarked | KITTI seq00 1.23 m and seq09 2.07 m, vs 1.3 m and 3.2 m for ORB-SLAM2 | deep_stereo_slam, online_slam_stereo_vo_kitti_demo |
| Stereo + IMU | VIO + mapping (Basalt port) | Benchmarked | Beats ORB-SLAM3 on 9/11 EuRoC sequences; native-Basalt parity within 0.1%; real time (RTF 1.06–1.68) on all 11/11 EuRoC sequences on the dev machine, thin margin on the slowest | basalt_euroc_online_slam_demo |
| RGB-D (as virtual stereo) | VO | Benchmarked | TUM fr1_xyz 0.014 m, fr1_desk 0.026 m (about 1.3–1.6× ORB-SLAM2 RGB-D) | TUM RGB-D |
| Multi-camera rig | SfM | Experimental | OpenLORIS 10k: 9,998/10,000 registered; RMSE parity with COLMAP still open | generalized_rig_sfm |
| Robot rig cameras vs. a prebuilt map | Relocalization | Benchmarked | OpenLORIS (robot-mounted rig): 98.96% of 1,250 held-out frames localized against a map built from other frames, median 2.9 mm | localize_openloris_map |
| Wheeled robot: stereo + IMU (RealSense T265), wheel odometry | Localization in a saved SLAM map, odometry corrected into its frame | Benchmarked | OpenLORIS-Scene office, other sessions up to 2.8 days later with furniture moved: VIO + map gives 94–99.8% of frames a map pose at 2.8–7.6 cm, and 1.1–2.4 cm with the stereo baseline corrected from the wheel odometry; wheel odometry + map 3.5–5.1 cm with its reference point and level calibrated from the VIO, and the same through the ROS 2 nodes from a rosbag2; across the day/night lighting change only with local contrast equalization (daylight session: 33% of frames at 2.6 cm; dawn session: none) | scripts/openloris_to_euroc.py, basalt_euroc_localize_demo --vio or --odometry (notes) |
| Robot camera sequence vs. a prebuilt map | Sequential map-matching localization | Benchmarked (simulation) | RNE house (drjohnson): 387/400 frames at 5.6 cm ATE, 38 ms per frame (median) with --gpu --motion-model. RNE checker corridor: 203/400 at 1.57 m, limited by repetitive texture |
localize_rne_map_sequence |
| Camera robot + wheel odometry vs. a prebuilt map, driven by Nav2 | Navigation: occupancy grid from the visual map, map -> odom for Nav2 (no AMCL) |
Experimental (simulation) | Simulated apartment, Nav2 Jazzy over ROS 2: 5/5 goals at 3.8 cm pose RMSE, 0 collisions (wheel odometry alone 0/5); replans around an obstacle missing from the map. Gazebo, rendered stereo + IMU, real nodes, SLAM-built map: 5/5 goals at 1.6 cm, also around an unmapped box; stops on lost VIO tracking (5 s camera blackout) and relocalizes; 5/5 in the public Depot warehouse at 6.1 cm | visual_map_to_occupancy, visloc_nav_sim_node (notes) |
| Camera + GNSS prior | Tracking | Example only | Synthetic smoke test; no tight GNSS fusion | track_sequence_with_gnss_prior |
| VO + GNSS positions | Joint pose-graph fusion | Experimental (synthetic) | ~1 km synthetic loop: ATE 5.25 m (VO only) → 0.90 m fused; multipath jumps rejected, 15 s dropout bridged. Loosely coupled (receiver ENU positions; no raw pseudoranges, no IMU) | gnss_vo_fusion_demo (notes) |
| Unordered photos + GPS (EXIF or a file) | Georeferenced SfM: robust Sim(3) to the fixes, then position priors in every global BA (COLMAP pose_prior_mapper) |
Experimental | Drone block with real onboard GNSS (158 images): shape right to 2.5 cm (0.47 m without priors); camera error 0.18 m with the GNSS bias removed, vs 1.72 m for the GNSS itself | unordered_sfm_demo --gps-priors-from-exif, colmap pose_prior_mapper (notes) |
LiDAR is not supported. Wheel odometry is supported only as the odometry that map fixes correct into a map's frame (above); it is not fused into the VIO.
Try it
In the browser, nothing to install: photo SfM (drop your photos, get camera poses and points, export a COLMAP dataset; the photos never leave the device), VIO (live on a phone, or on a recorded walk) and a Gaussian splat viewer.
Locally: requires Rust 1.88+ only. Datasets are external inputs and are not bundled.
# Photos -> camera poses, Gaussian splat and mesh (GPU via wgpu)
# Stereo-inertial VI-SLAM on a EuRoC sequence
# Smallest end-to-end check: localize a synthetic query, no data needed
Full options for each are in the sections below; scripts/check.sh runs the
complete local quality gate (fmt, clippy, test, doc).
Prebuilt binaries: each release
attaches gsplat_photos, visloc_mvs, colmap_incremental_mapper and
visloc_web for Linux x86_64, Windows x86_64 and macOS (Apple silicon), so
the photo pipeline runs without a Rust toolchain. The same tools come as a
container image, ghcr.io/rsasaki0109/visloc-rs (docs/docker.md).
Structure from Motion
visloc-rs registers 9,996/10,008 cameras (99.88%) across every ETH3D low-resolution many-view scene with no mapper run above 3.32 GiB, reconstructs the 1,200-image Electro set 3.46× faster than COLMAP with 25.2% lower camera-centre RMSE, and beats official COLMAP on the 38-image courtyard control (0.5379 cm vs 1.6166 cm).
| Real scene (ETH3D low-res many-view) | Registered / supplied | Centre RMSE | RMSE / extent | Mapper peak RSS |
|---|---|---|---|---|
| terrains | 660/660 | 0.58 cm | 0.12% | 1.56 GiB |
| delivery area | 948/948 | 9.22 cm | 0.99% | 2.31 GiB |
| forest | 1028/1028 | 1.33 cm | 0.19% | 2.65 GiB |
| playground | 955/960 | 6.12 cm | 2.52% | 2.44 GiB |
| electro | 1200/1200 | 3.50 cm | 0.55% | 1.39 GiB |
| lakeside | 1063/1064 | 0.34 cm | 0.08% | 3.19 GiB |
| sand box | 1112/1112 | 2.35 cm | 0.45% | 3.32 GiB |
| storage room | 795/796 | 0.61 cm | 0.42% | 1.71 GiB |
| storage room 2 | 831/832 | 3.48 cm | 2.57% | 1.00 GiB |
| tunnel | 1404/1408 | 14.92 cm | 1.61% | 3.25 GiB |
Against COLMAP 4.2 and GLOMAP on the same inputs
On the 13 ETH3D DSLR training scenes, the visloc-rs mapper is on par with COLMAP 4.2's incremental mapper and its global mapper (GLOMAP), and maps about 7× faster. All three get the same COLMAP SIFT features and exhaustive matches, the GLOMAP paper's setup, and the scoring follows that paper:
| Mapper (pycolmap 4.2.1, 4 threads) | Mean AUC@1° / 3° / 5° | Registered | Mapper time |
|---|---|---|---|
| visloc-rs | 50.9 / 75.5 / 82.1 | 445 / 454 | 28.4 s |
| COLMAP incremental | 50.4 / 75.2 / 81.7 | 445 / 454 | 200.7 s |
| COLMAP global (GLOMAP) | 51.6 / 75.5 / 81.7 | 454 / 454 | 184.4 s |
On visloc-rs's own matches (GPU SIFT, the default) it leads both at every threshold: 53.1 / 78.9 / 85.7. On the 5,822 SmallCity photos, visloc-rs maps in 21.7 min; COLMAP's global mapper had not finished after 94 min. Per-scene tables, timings and caveats: ETH3D AUC benchmark.
Large connected collections
On the connected OpenLORIS 10k stress set, streamed VLAD + LSH cuts candidate generation from 49:49 to 8:51 (5.63×); RMSE parity with COLMAP is still open (0.3890 m vs 0.3843 m). Full tables and caveats: SfM benchmark details.
GPU SfM vs COLMAP (CUDA) on EuRoC
Same 200 undistorted frames per sequence, same fixed intrinsics, same GPU, run back to back. visloc-rs uses GPU SIFT, batched GPU matching and the COLMAP incremental-mapper port. COLMAP 4.1 uses GPU extraction, GPU sequential matching and its default mapper. ATE is the Sim(3) camera-centre RMSE against ground truth.
| Sequence | Time (visloc-rs / COLMAP) | ATE (visloc-rs / COLMAP) | Registered (visloc-rs / COLMAP) |
|---|---|---|---|
| MH_01_easy | 96 s / 634 s | 0.35 / 0.35 cm | 182 / 200 |
| MH_03_medium | 113 s / 340 s | 1.32 / 2.61 cm | 166 / 200 |
| MH_05_difficult | 102 s / 764 s | 2.58 / 193.66 cm | 194 / 200 |
| V1_01_easy | 104 s / 219 s | 2.40 / 2.75 cm | 199 / 200 |
| V1_02_medium | 55 s / 101 s | 1.76 / 1.83 cm | 198 / 200 |
| V2_01_easy | 81 s / 172 s | 3.30 / 1.00 cm | 199 / 200 |
| V1_03_difficult | 45 s / 93 s | 2.17 / 1.98 cm | 67 / 80 |
| V2_03_difficult | 42 s / 60 s | 3.37 / 2.85 cm | 118 / 180 |
visloc-rs is faster on all 8 sequences (1.4–7.5×). It is more accurate on 4 and equal on MH_01. COLMAP is more accurate on V2_01, V1_03 and V2_03, and it registers more frames, most visibly on the blurred V1_03 and V2_03.
COLMAP's results vary between runs: an earlier run gave V2_01 34.9 cm, and MH_05 failed in both runs. visloc-rs is deterministic.
Configuration, caveats, the ablation and the command that reproduces the table: EuRoC GPU SfM vs COLMAP.
Run the SfM demo
To try it without installing anything, the browser SfM runs the same SIFT, matching, verification and incremental mapper on your photos in WebAssembly (WebGPU where available).
Reconstruct an unordered photo set in one command — SIFT features estimated
in-process, COLMAP text model (cameras.txt, images.txt, points3D.txt)
written to --out-colmap:
Pass a validated per-image calibration with --input-colmap-calibration instead
of the scalar intrinsics. The complete option set, the courtyard control
commands, and the connected-component export mode are in the
SfM benchmark details.
Photos to splat and mesh (3D Gaussian Splatting)
A folder of photos becomes a trained 3D Gaussian Splatting scene and a coloured mesh in one command, in Rust + wgpu with no COLMAP or Python:
The pipeline runs SfM (EXIF focal, GPU SIFT and matching, the COLMAP-port
mapper, intrinsics refined by the final bundle adjustment; a COLMAP model is
written to sparse/0), trains with brush's refine strategy on hand-written
wgpu passes (faster than brush 0.3 on 5/5 benchmark scenes), and fuses a
mesh from median depths. --equirect takes 360° panoramas, and visloc_web
runs the same pipeline from a browser. Stages, the hero runs, 360° cameras,
the web UI and the reproduction commands:
photos to splat and mesh. A trained splat can
also take a class and an object per gaussian, voted from SAM 3 labels of
its photos, and the web viewer blends them in. Trained with the labels
(gsplat_train_cuda --labels), the splat agrees with SAM 3 on 89.8% of
MeetingRoom_In's held-out pixels (79–85% without) and 92.4% of
Building_In's (87%):
semantic splats.
Visual-Inertial SLAM (Basalt Rust port)
A faithful Rust port of upstream
Basalt commit 0f3b2b52 — a
tightly-coupled stereo-inertial VIO estimator plus a keyframe/loop-closure
mapper — in pipelines/basalt. On upstream Basalt's own
inputs it matches native Basalt's ATE to within 0.1% on all 11 EuRoC
sequences. With EuRoC's official calibration, the mapper runs online
beside the VIO, beats measured ORB-SLAM3 (full-trajectory SE(3) ATE) on
9 of 11 EuRoC sequences, and runs in real time on all 11 on the
development machine (RTF 1.06–1.68; the slowest have little headroom).
| Sequence | visloc-rs (online VI-SLAM) | ORB-SLAM3 stereo-inertial | Winner |
|---|---|---|---|
| MH_01_easy | 0.016 | 0.036 | visloc-rs |
| MH_02_easy | 0.025 | 0.033 | visloc-rs |
| MH_03_medium | 0.026 | 0.028 | visloc-rs |
| MH_04_difficult | 0.070 | 0.043 | ORB-SLAM3 |
| MH_05_difficult | 0.063 | 0.055 | ORB-SLAM3 |
| V1_01_easy | 0.036 | 0.038 | visloc-rs |
| V1_02_medium | 0.014 | 0.017 | visloc-rs |
| V1_03_difficult | 0.021 | 0.029 | visloc-rs |
| V2_01_easy | 0.017 | 0.039 | visloc-rs |
| V2_02_medium | 0.012 | 0.014 | visloc-rs |
| V2_03_difficult | 0.045 | 0.056 | visloc-rs |
Project Aria glasses (LaMAria)
On LaMAria (Project Aria glasses on city walks:
Short, Medium, Long, Low light and Moving-platform tracks), the Basalt port's
VIO runs on both SLAM cameras and the IMU, and a visual-inertial bundle
adjustment (scripts/lamaria_batch_ba.py)
runs behind it: SIFT keyframes at 2 Hz, matches guided by the VIO, revisits,
and the last 240 s solved again every 30 s, with the gyro bias free to move
in the first minutes while the device warms up (by day). The chain is causal
and keeps up with the recording on 4 CPU cores (about 4 CPU seconds per second
of recording); one batch pass after the recording, its gyro bias free to drift
slowly, adds the revisits over the whole sequence. The training scores
below use the cameras and the IMU only; on the test set's Moving platform
track, the recordings' 1 Hz GPS also bridges the rides the VIO missed
(docs/lamaria_gps.md).
On the leaderboard's test set visloc-rs is sixth by the mean of the five tracks. Score per track (official evaluator, higher is better):
| Method | Sequences | Short | Medium | Long | Low light | Moving | Mean |
|---|---|---|---|---|---|---|---|
| Aria's SLAM (closed source) | test | 90.7 | 78.5 | 70.9 | 84.2 | 55.0 | 75.9 |
| SLAM Dunk | test | 89.6 | 78.9 | 71.1 | 85.4 | 52.3 | 75.5 |
| FlexVIO | test | 88.5 | 81.8 | 79.3 | 82.4 | 34.0 | 73.2 |
| GroundedSLAM | test | 87.0 | 72.7 | 70.8 | 81.9 | 49.8 | 72.4 |
| RedComet | test | 75.5 | 65.8 | 61.3 | 77.6 | 53.1 | 66.7 |
| visloc-rs, the VIO and the chain offline (submission 10) | test | 69.7 | 56.8 | 54.1 | 61.1 | 47.3 | 57.8 |
| FPV-SLAM (binocular) | test | 77.3 | 58.8 | 51.0 | 64.6 | 29.6 | 56.3 |
| OpenVINS + Maplab | test | 27.7 | 23.4 | 12.8 | 19.8 | 13.9 | 19.5 |
| visloc-rs, online + one pass after the recording¹ | training | 83.8 | 69.8 | 67.4 | 67.6 | 33.1 | 64.3 |
| visloc-rs, online (causal, real time) | training | 79.7 | 67.2 | 63.3 | 67.6 | 32.1 | 62.0 |
Test rows as the leaderboard showed them on 2026-11-13. The two training rows are the ten training sequences, two per track, scored locally with the official evaluator: the chain's settings were chosen on them, so they are not comparable with the test rows. On the test set's four walking tracks 94–99.5 % of the poses are within 5 m, but too few control points within 1 m: a slow drift in heading and scale over the long one-way walks (test results). ¹ Low light keeps the online result, and runs without the warm-up, which lowers it there. Per sequence: the real-time chain; the steps that led here: LaMAria plan.
Objects in metres (mono + IMU)
A 2D detector (YOLOX through ONNX Runtime) and a ByteTrack-style tracker give each object a track of boxes. The mono-inertial VIO gives metric camera poses and gravity. An object on the ground is placed where the bottom of its box meets the ground, found from the triangulated points under the camera's path. That gives its height, its distance and, from the foot's path, its speed. On KITTI raw, against the tracklets (median errors):
| Poses | Cars: height | Cars: distance | Pedestrians: height |
|---|---|---|---|
| Mono + IMU (110 cars, 5 drives) | 0.16 m, 11 % | 19 % | – ¹ |
| Stereo + IMU (111 cars, 18 pedestrians) | 0.09 m, 6 % | 12 % | 0.07 m, 4 % |
¹ The pedestrians are on 0091, which starts moving; the mono-inertial VIO must start at rest.
scripts/run_kitti_objects_eval.sh runs a drive end to end, and
scripts/render_objects_gif.py draws a GIF of a drive. The method,
results on LaMAria and TUM-VI, and what still fails:
object tracking.
Run the VI-SLAM demo
Replay a EuRoC sequence through the online VIO + mapper (the calibration and
config are in the repo; --euroc-dir is an external dataset):
RUSTFLAGS="-C target-feature=+avx2,+fma" \
It writes trajectory_online.tum (what the table above scores),
trajectory_online_kf.tum and timing_breakdown_online.json. The
release-rt profile and mimalloc give the real-time numbers; a plain
--release build is correct, just slower. The offline VIO + batch-mapper
commands and --pipeline / --threads are in the
VI-SLAM benchmark details.
Localize against a map
Load a real COLMAP model and localize a query photo against it. Fetch COLMAP's south-building dataset once (about 100 MB):
&& && \
&& \
Then, from the repository root:
| First run | Command | What it shows |
|---|---|---|
| Synthetic localization | cargo run --example localize_dummy |
Smallest end-to-end: one query, one landmark, PnP RANSAC estimate |
| Map-reuse localization | cargo run --release --features image-io --example deep_localization_demo -- --root <south-building> --map-image P1180141.JPG --query-image P1180155.JPG |
A real query photo localized against a COLMAP model, classical vs deep frontend |
| Sequence tracking | cargo run --features image-io --example track_image_sequence_from_common_images |
Moving-camera tracking smoke with per-frame pose continuity |
| KITTI revisit scanner | python scripts/run_kitti_deep_vo_revisit_smoke.py |
Public KITTI 00 revisit smoke (downloads start/revisit slices) |
| Full local quality gate | scripts/check.sh |
fmt + clippy + test + doc in one command |
A photo with no EXIF? localize_with_unknown_focal estimates the focal
length with P4Pf while localizing. On the 38 ETH3D courtyard photos (leave one
out) it localizes 36 at 1.0% centre error, the same as knowing the focal
length, where a guessed focal length gives poses 3.5 scene radii off
(details).
Save a VI-SLAM map and localize against it
The stereo-inertial SLAM demo can save its final map, and a second sequence of the same place can then be localized against it, image by image, without running SLAM again:
# 1. Map MH_01 and save the map (COLMAP text model + ORB descriptors)
# 2. Localize MH_02's cam0 images against it
target/mh01_map/sparse is an ordinary COLMAP model (the Double Sphere
cameras are saved as fitted OPENCV_FISHEYE). localization.tum holds IMU
poses in the map's frame, the convention of the SLAM demo's trajectories.
Against an MH_01 map, MH_02 (a different flight) localizes 81.2% of its
images at 1.8 cm RMSE against ground truth. Over eight cross-session EuRoC
queries no accepted pose is more than 25 cm off; how many images localize
depends on how much of the flight the map covers. Add --vio --calibration FILE --config FILE to run the stereo-inertial VIO alongside and correct it
into the map frame: every frame then gets a map pose (MH_02: 99.8% at 2.0 cm RMSE,
localizing every 5th image). Each image is then matched around where the
corrected VIO predicts the landmarks, so 98% of MH_02's images match the map
instead of 81%, in half the time. On a real wheeled
robot (OpenLORIS-Scene, a RealSense T265), sessions days apart in a
rearranged office localize the same way, and --odometry FILE corrects the
robot's wheel odometry instead of the VIO; see
the OpenLORIS results. Maps of several flights of a place merge into
one with basalt_map_merge --base A --add B --out AB: against MH_01 merged
with MH_05's map, MH_04 localizes 55.8% of its images instead of 4.6%. See
the EuRoC map-localization results.
More runnable demos and the full index are in the demo strategy and the archived README details.
Use from Python and ROS 2
Python
bindings/python builds a visloc Python package
with pyo3 + maturin: cameras (COLMAP models), SE(3) poses, COLMAP text/binary
read/write as NumPy arrays, PnP + RANSAC localization, and ATE / RPE
trajectory evaluation.
Prebuilt wheels on PyPI cover CPython
3.10–3.14 on Linux (x86_64, aarch64), Windows x64 and macOS arm64; elsewhere
pip builds from the sdist, which needs a Rust toolchain. To build from a
checkout instead: cd bindings/python && pip install maturin numpy && maturin develop --release.
ROS 2
ros2/visloc-ros2 has three ROS 2 nodes built on
the pure-Rust ros2-client (RustDDS), so building them needs no ROS install:
visloc_vio_noderuns the Basalt stereo-inertial VIO on twosensor_msgs/Imagetopics plussensor_msgs/Imu, and publishesnav_msgs/Odometry,geometry_msgs/PoseStamped,nav_msgs/Pathand/tf.visloc_localize_nodelocalizessensor_msgs/Imageframes against a COLMAP map and publishesPoseWithCovarianceStamped, an inlier count and diagnostics.visloc_map_localize_nodelocalizes a robot in a map saved by the stereo-inertial SLAM (--save-map): next tovisloc_vio_nodeit publishes/tfmap -> odomand the body pose in the map. EuRoC MH_02 replayed over DDS against an MH_01 map: a map pose for 99.8% of frames at 2.2 cm RMSE.
&&
The nodes are tested over DDS (RustDDS to RustDDS) but not yet against a ROS 2 install; see the crate README for topics, parameters, QoS notes and limits.
Navigation with Nav2. visual_map_to_occupancy turns a saved visual map
into the occupancy grid Nav2's map_server loads, and visloc's map -> odom
takes the place of AMCL. In simulation (visloc_nav_sim_node: a camera robot
in a simulated apartment, localized by visloc's own pipeline), Nav2 Jazzy
reaches 5/5 goals with 0 collisions at 3.8 cm pose RMSE, against 0/5 on wheel
odometry alone, and replans around an obstacle missing from the map. In
Gazebo, with rendered stereo images and the real robot nodes
(visloc_vio_node, visloc_map_localize_node) on a map from visloc's own
SLAM, it reaches 5/5 goals at 1.6 cm pose RMSE, also around an unmapped
box. When the VIO loses tracking (cameras blacked out), it either stops until
it relocalizes or, given wheel odometry (wheel_odom_topic), drives on and
reaches all goals at the first try. Not yet tried on a real robot. See
docs/navigation.md.
A 360° video to a busy simulator in one command. real2sim.py runs every
step on a CPU: SfM in metres from the camera's IMU, 3DGS, the robot's map,
and Nav2 with people on the street. It took about 1 h 45 min for a 121 m
walk on 4 cores.
More results
Local public-data development measurements, not official leaderboard submissions.
The headline snapshot is registry-backed by
benchmarks/registry/readme_claims_v1.json;
see the registered run evidence and
scoped claim matrix.
- KITTI multi-sequence — one config over 00/02/05/06/07/09: seq00 1.23 m and seq09 2.07 m, against ORB-SLAM2's published 1.3 m and 3.2 m (details).
- EuRoC MH_03 / MH_05 stereo loop closure + BA — 0.057 m / 0.072 m ATE; behind ORB-SLAM3 (~2.4× / ~1.4×), near OV2SLAM.
- TUM RGB-D fr1_xyz / fr1_desk via virtual stereo — 0.014 m / 0.026 m ATE (details).
- Sequential SfM vs COLMAP on a 2,700-frame EuRoC flight — stereo VO + loop SfM 6 min, 0.13 m, metric against COLMAP mono incremental 11.7 h, 2.18 m, scale-free (details).
- Unordered SfM (real photo collections) — orderless photos -> VLAD view graph -> incremental reconstruction, vs COLMAP's own model: South Building 128/128, 1.09 cm; Gerrard Hall 98/100, 0.68 cm (both 0.1% of extent).
Documentation
The detailed README material preserves the project boundaries, feature overview, full demos table, minimal Rust example, repository layout, roadmap, further-reading index, and complete benchmark snapshot that previously lived here.
- Choose and run a demo: demo index, public COLMAP map-reuse demo, GNSS-prior tracking, and in your browser the photo SfM, the VIO (live on a phone, or on a recorded walk anywhere) and the splat viewer.
- Reproduce a result: reproducibility contract (what is bit-identical, what is not, and the rules new code follows).
- Understand supported configurations: feature matrix, API stability, COLMAP compatibility, and migration notes.
- Inspect VO and loop-closure evidence: KITTI multi-sequence, KITTI loop closure, EuRoC loop closure, TUM RGB-D, and tracking persistence.
- Drive a robot with Nav2: navigation with Nav2 on visloc localization (occupancy grids from visual maps, simulated closed loop).
- Inspect VI-SLAM (Basalt Rust port) evidence: VI-SLAM benchmark details, localizing against a saved map, faithful-port final closure report, and upstream oracle / provenance.
- Where VI-SLAM goes next: global-consistency plan — same-protocol ORB-SLAM3 measurements, the 9/11 official-calibration + mapper result (now online and real time on 11/11, §1.5-1.6) and its scale-bias root cause, the paused persistent-map prototype, and the staged plan targeting VIO tracking robustness on the two remaining losses (MH_04, MH_05).
- Inspect SfM evidence: SfM benchmark details, EuRoC reconstruction, sequential SfM vs COLMAP, unordered SfM, and registry evidence for the head-to-head.
- Inspect learned frontend evidence: SuperPoint ONNX/CUDA, LightGlue ONNX, and single-binary deep stereo SLAM.
- Inspect mapping and optimization evidence: learned retrieval for relocalization, multi-session lifelong mapping, and pose-graph / BA internals with GTSAM parity.
- Follow the project: roadmap, contributing, security, and changelog.
License
Licensed under either of Apache License, Version 2.0 or MIT license, at your option.