~/satyajit

Voxel-SLAM: plane bundle adjustment from the FAST-LIO2 lab, built without ROS and measured

mdjsonmcp

2026-11-21 · 31 min · slam · lidar · state-estimation · point-cloud · benchmarks

A 3:07 narrated explainer, drawn in code. Every number and picture in it is this article's own; the sources are below.

› transcript

This is a theatre in Oxford, mapped by a person walking it with a LiDAR scanner. The white line is their path. The hard part is the stairwells. Narrow, twisting, few flat surfaces. This is where most LiDAR odometry drifts. Hi, I'm Octant! Voxel-SLAM is the full mapping system from the lab behind FAST-LIO2. Here is how it works, and what it did on four real walks. Odometry registers each new scan against the planes in the map, with the same kind of filter FAST-LIO2 uses. Local mapping then adjusts the last ten scans together, so a scan that went in slightly wrong can still be corrected. Loop closure spots a place it has seen before and pulls the whole pose graph into agreement. And when the data ends, a bundle adjustment over the whole session lines up every wall one more time. Three scans of one straight wall, with the height stretched so centimetres show. Scan two was registered badly earlier, and that error is already in the map. Scan-to-map registration moves only the new scan. It fits the map as it stands, so it lands on a wall that is not there. Bundle adjustment moves scans two and three together, against the anchor. Each iteration refits the plane through every point. The plane never becomes a variable. Its normal is the eigenvector with the smallest eigenvalue, and that eigenvalue is the cost. And each scan only needs three numbers per plane: a count, a sum, and a sum of outer products. The optimiser never touches a point. When a loop closes, the odometry has already moved on. Some scans left the window during the solve, and ten more are still in it. So every scan past the graph gets the last node's correction, and the local map is rebuilt from them before the odometry carries on. On a walk round an Oxford college quad, the place recogniser proposed forty-five loop candidates. Twenty-nine passed the checks: a well-constrained match, and a drift under one percent of the distance walked. One optimisation near the end, when the walk came back to its start, and a global bundle adjustment after it. Three point two centimetres over two hundred and eighty-three metres. Its odometry alone is six point six centimetres, level with FAST-LIO2's six point two. Closing the loop halves it. In the Sheldonian stairwells, PV-LIO, which runs the same kind of plane map under a filter, drifted one point seven three metres. Voxel-SLAM held it to eight point two one centimetres, with no loop at all. The global bundle adjustment at the end did the rest. The price is memory and time. It keeps every scan for loop closure and global mapping: over four gigabytes for a five-minute walk. For a map, run the full system. For a pose right now, its odometry is about level with FAST-LIO2. Planes, a window, loops, and a run on real walks. Thanks for watching! Every source is in the full article. I'm Octant. Bye!

Why read this

Hightop 30%

Voxel-SLAM derived (plane BA as an eigenvalue, point clusters), built with no ROS, and scored odometry vs local BA vs full SLAM on four sequences.

  • Checked against the source
  • Interactive explanations
  • Runs on a laptop CPU

Robotics & embodiedGPL-2.0Practitioner paper

How this was scored
Is it new?
1 of 3: An incremental tweak
Can I trust it?
3 of 3: Reproduces the headline result, or shows from primary files it is wrong
Can I run it?
2 of 3: Open code or weights with real limits
Will I understand it?
3 of 3: Mechanism carried by interactives built from real code or data
Can I act on it?
2 of 3: A concrete recipe, numbers or comparison
Will it last?
2 of 3: A reference for a year or more
Does it affect many?
1 of 3: A specialist community
Only here?
2 of 3: A teardown or measurement few others did

Score 72 of 100, ranked 114 of 773 rated articles. Each question is answered 0–3 by hand, and a 3 is rare. How articles are scored

Voxel-SLAM is what the HKU MaRS lab, the group behind FAST-LIO2, built when it wanted a map rather than an odometry. FAST-LIO2 registers each LiDAR sweep once, against a map that already contains every earlier mistake, and moves on. Voxel-SLAM keeps a filter of the same kind for that first registration and then goes back over the data three more times: a bundle adjustment over the last ten sweeps, loop closure against every place it has been, and a bundle adjustment over the whole session when the data ends. The paper (Liu et al., arXiv 2410.08935) reports the most accurate results of any method it compares on 30 sequences, and the code is at hku-mars/Voxel-SLAM. The site owner's verdict before I started was that it "apparently is really good". That is the claim this article tests.

hku-mars/Voxel-SLAM@70fc8a2 · snapshot 2026-11-21
stars
707
license
GPL-2.0
branch
main
forks
90
open issues
20
source
265.5 kB
commit date
2025-04-07
source by language
C++263.0 kBCMake2.5 kB

GitHub REST API, 2026-11-21 — branch, commit, commitDate, createdAt, forks, languages, license, openIssues, pushedAt, stars

The first half is the mechanism: why a bundle adjustment on planes can correct a scan that point-to-plane registration has already got wrong, what makes it cheap enough to run on every sweep, and how each of the system's four layers of data association is solved. The second half is a measurement. Upstream is a ROS 1 Noetic package; I built its C++ core with no ROS at all, drove it from a small replay driver, and ran it on the four sequences of the site's LiDAR shootout, two of which are the ones the FAST-LIO2 article used, with the same alignment and metrics. Each run was scored three ways: the odometry alone, the odometry with the local bundle adjustment, and the full system with loop closure and global BA.

It held up. Full SLAM tracked a Hilti basement to 3.15 cm, a 283 m Oxford walk to 3.20 cm and two Sheldonian stairwells to 8.21 cm, untuned, with no resets; on the stairs a close cousin on the same plane map, PV-LIO, lost 1.73 m. Most of that accuracy came from the loop closure and the end-of-session global BA, not the sliding window, and it costs about five times FAST-LIO2's time per scan and gigabytes of memory.

On the 2.4 km Newer College park loop it landed at 24.2 cm, level with the best of the other systems on that sequence, and there the loop closure did nothing: 916 accepted loop edges, and no optimisation.

Four ways to reuse a measurement

The paper frames the whole system around one idea borrowed from ORB-SLAM3: a SLAM system is better than an odometry to the extent that it associates a measurement with more than the map of the moment. It names four kinds of association, and Voxel-SLAM has one module for each.

associationwhat it linksVoxel-SLAM modulehow it is solved
short-termthe newest scan to the current mapodometryiterated EKF, point-to-plane on the voxel map's planes
mid-termthe last 10 scans to each other and to the maplocal mappingLiDAR-inertial bundle adjustment over a sliding window
long-termthe current place to every earlier visitloop closure, global mappingBTC place recognition, pose graph (GTSAM iSAM2), hierarchical BA
multi-mapone session to an earlier onethe same twothe same, across sessions

FAST-LIO2 does the first row and nothing else. Every scan is registered once, against a map that already contains every earlier mistake, and then the scan becomes part of the map forever. That is fine while the map is good. When a scan is registered badly (a stairwell, a long corridor, a moment of fast rotation) the error is written into the map, and every later scan inherits it by being registered against it.

Voxel-SLAM keeps FAST-LIO2's filter for the first row, nearly unchanged, and spends its effort on the other three. It runs three threads: odometry and local mapping in one, loop closure in a second, global mapping in a third.

Voxel-SLAM system diagram. LiDAR scan and IMU enter Initialization, then Odometry (state prediction, state update, a divergence check that saves the session and restarts). Local mapping does keyframe loading and voxelisation, sliding-window BA and map marginalisation. Loop closure accumulates keyframes, extracts loop descriptors, detects loops across sessions and runs a multi-session pose graph. Global mapping runs keyframe BA, then at session end a global submap BA and a top-down optimisation. In the centre a voxel map, one voxel split into an octree, with a sliding window marginalised into a fix point. At the bottom the data pyramid: LiDAR scans merged into keyframes, keyframes into submaps, for the current and previous sessions.
Five modules in three threads (grey boxes), one adaptive voxel map in the middle, and the data pyramid at the bottom: 10 scans make a keyframe, 10 keyframes make a submap (Voxel-SLAM paper, Figure 1).

One map for every module: the adaptive voxel

Everything in Voxel-SLAM is a plane, and planes live in one structure. Space is cut into root voxels of side LrL_r, kept in a hash table. A voxel's points are tested for flatness through the eigenvalues λ1≤λ2≤λ3\lambda_1 \le \lambda_2 \le \lambda_3 of their covariance; a flat voxel is a plane, and one that is not flat splits into eight children and tries again, down to max_layer. The code's test (plane_judge in voxel_map.hpp) is

return (eig_values[0] < min_eigen_value && (eig_values[0]/eig_values[2])<plane_eigen_value_thre[layer]);

With the shipped Hilti config (hesai.yaml) that is Lr=1L_r = 1 m, max_layer: 2 (so leaves of 1 m, 0.5 m and 0.25 m), min_eigen_value: 0.0025 (the points' spread across the plane under 5 cm RMS) and a ratio threshold of 1, which switches the second test off. The scans are downsampled to a 0.1 m grid before any of this (down_size). The paper's Section X gives the rule it used for all its experiments: LrL_r = 1 m and LdL_d = 0.1 m indoors, 2 m and 0.25 m outdoors, 4 m and 0.5 m for a drone 100 m up.

Odometry matches each new point to the plane in its voxel with the highest probability, using each point's own range-and-bearing covariance (the VoxelMap recipe). Local mapping runs its bundle adjustment on the same leaves. Loop closure builds its BTC descriptors from planes found the same way, and global mapping's hierarchical BA does too. One structure, four uses.

Why a plane BA beats point-to-plane

Point-to-plane registration, FAST-LIO2's measurement, is a cost on one pose. A point pp seen from pose TT should land on a plane (n,q)(n, q) that the map already holds:

r=n⊤(Tp−q).r = n^\top (T p - q).

The plane is a constant. If it was fitted to points that were placed wrongly, the new scan is pulled to the wrong place, and the error is now in two scans instead of one.

Bundle adjustment makes the plane depend on every scan that sees it. Take all the points that fall in one leaf, from every scan in the window, placed by their current poses: pk=Ti(k)pk′p_k = T_{i(k)} p'_k. The best plane through them, and the sum of squared distances to it, have a closed form. The plane's centre is the mean pˉ\bar p; its normal is the eigenvector of the covariance

C=1N∑k=1N(pk−pˉ)(pk−pˉ)⊤C = \frac{1}{N} \sum_{k=1}^{N} (p_k - \bar p)(p_k - \bar p)^\top

with the smallest eigenvalue; and the residual is

min⁡n,q∑k=1N(n⊤(pk−q))2=N λmin⁡(C).\min_{n, q} \sum_{k=1}^{N} \bigl(n^\top (p_k - q)\bigr)^2 = N \, \lambda_{\min}(C).

So the plane drops out of the problem. What is left is a cost on the poses alone, one eigenvalue per plane, and the paper's equation 2 adds IMU preintegration residuals between consecutive states:

min⁡X  12∑i=1N−1∥ri,i+1(X)∥Σi,i+1−12  +  ∑j=1Mλjmin⁡(X),X=[x1,…,xN,g].\min_{\mathcal{X}} \; \frac{1}{2} \sum_{i=1}^{N-1} \bigl\| r_{i,i+1}(\mathcal{X}) \bigr\|^2_{\Sigma_{i,i+1}^{-1}} \; + \; \sum_{j=1}^{M} \lambda_j^{\min}(\mathcal{X}), \qquad \mathcal{X} = [x_1, \dots, x_N, g].

This is cheap enough to run every scan for a pair of reasons. One is that the eigenvalue is smooth in the poses, with an analytic gradient and Hessian (BALM2 derives them), so a second-order solver converges in a few iterations. The other is the point cluster. CC needs only NN, ∑p\sum p and ∑pp⊤\sum p p^\top, and for one scan's points transformed by T=(R,t)T = (R, t) those transform in closed form:

∑p=R∑p′+Nit,∑pp⊤=R(∑p′p′⊤)R⊤+R(∑p′)t⊤+t(∑p′)⊤R⊤+Ni tt⊤.\sum p = R \sum p' + N_i t, \qquad \sum p p^\top = R \Bigl(\sum p' p'^\top\Bigr) R^\top + R \Bigl(\sum p'\Bigr) t^\top + t \Bigl(\sum p'\Bigr)^\top R^\top + N_i \, t t^\top.

Each scan contributes a 3-vector, a symmetric 3x3 and a count per leaf, however many points it put there. The optimiser never touches a point.

The widget makes the difference concrete in 2D. Scan 2 has been registered with a 1.2 degree, 6 cm error that is now part of the map. Scan-to-map registration fixes scan 3 against that map and puts it on a wall that is not there; the window BA moves scans 2 and 3 together against the anchor and the wall comes back to the 2 cm of the noise. The cost is printed twice, from the 180 points and from the three clusters, and the numbers are the same.

This is the core claim of the paper, and the place where Voxel-SLAM differs from every LIO in the FAST-LIO2 article. FAST-LIO2's iterated update is Gauss-Newton on one pose against a frozen map. Voxel-SLAM's local BA is Levenberg-Marquardt on ten poses, their velocities and biases, against planes it re-solves at every iteration.

The sliding window, and the points that stop moving

Local mapping keeps the last win_size: 10 scans as variables. When a new scan has been through the odometry, its points go into the voxel map, every voxel that received points is re-voxelised, and in each leaf the points are split into one point cluster per scan in the window plus one cluster for everything else. That last one, the "fix" cluster, is made of points from scans that have left the window and from old keyframes reloaded because the sensor is back near them. It enters the BA as a plane constraint with an identity pose: it anchors the window to the world without adding variables.

After the optimisation the oldest scan is marginalised in the simplest possible way: its points are added to the fix clusters of their leaves, and its pose is handed to the loop-closure thread. That is the pose I call the local-BA pose below. It is the odometry estimate after ten scans of hindsight, and it is what the loop closure, the keyframes and the map are built from.

The window also carries gravity. At initialisation, from the first second of data, the BA includes the gravity vector as a free 3-vector (its length too, since LiDAR gives metric scale), which is how the system starts while moving: it needs no stationary period. After that, gravity is held fixed in the window.

The divergence check sits between odometry and local mapping. After each registration the planes used are tested for constraint in three independent directions; one degenerate scan is tolerated, degrade_bound: 100 of them in a row reset the system, which saves the current session and starts a new one at a far-away origin. A later loop closure can join the two sessions.

Loops, and what happens to the window when one closes

Every 10 marginalised scans form a frame. The frame becomes a keyframe if it moved more than a threshold (the code uses 5 degrees or 0.1 m), and the keyframe's points go to BTC, the lab's binary-triangle descriptor, which proposes a matching keyframe from this session or an earlier one with a 6-DoF transform. Before the match is believed, two more checks:

The second check is a nice piece of engineering judgement. A place recogniser's false positives are usually far off; a system that drifts 1% of distance does not suddenly need a 10 m correction. For the first match into an earlier session there is no travelled distance to compare against, and the paper says the other checks are made stricter.

A loop that passes adds an edge to a pose graph of all local-BA poses, and iSAM2 solves it. Then the system has a problem FAST-LIO2-with-loop-closure systems often ignore: the odometry thread has moved on. Scans have been marginalised since the graph was built, and ten more are in the window.

Two rows of nodes before and after a pose graph optimisation. Red nodes are scans already in the pose graph, green nodes are scans marginalised from local mapping while loop closure was running, blue nodes are scans in the current sliding window. After the optimisation the red nodes move, and the green and blue nodes are all moved by the same correction, the pose change of the last red node.
Scans in the graph (red), scans marginalised while the loop was being solved (green) and the live window (blue). All the scans beyond the graph get the last graph node's correction, and a new voxel map is built from them and the last five keyframes (Voxel-SLAM paper, Figure 5).

The answer is to apply the last graph node's correction to every scan beyond it, rebuild the local voxel map from the corrected window and the last five keyframes, and hand that map to the odometry. In the code, loop_update() runs at the top of the odometry loop whenever the loop thread raises loop_detect. To keep this from happening constantly, the optimisation only runs if the drift the loop reveals is over 0.10 m and at least curr_halt: 10 keyframes have passed since the last one.

Global mapping: BA at three levels, once more at the end

The pose graph only knows relative poses. Two scans of the same wall can be consistent with every edge in the graph and still disagree about where the wall is. The global mapping thread fixes that with HBA, the lab's hierarchical bundle adjustment:

  1. As keyframes arrive, a window of 10 keyframes, sliding by 5, is bundle-adjusted with its first keyframe held at the pose-graph result, and merged into a submap.
  2. When the session ends, a BA over all submaps (coarse-to-fine voxels, no IMU, no gravity).
  3. A top-down pose graph pushes the submap corrections back to every scan.

The data pyramid in Figure 1 is this: 10 scans per keyframe, 10 keyframes per submap, BA at every level. "Session end" means what it says. In the upstream code it is a ROS parameter, rosparam set finish true, typed by hand after the bag stops. My driver sets it when the data runs out.

The paper's Table II gives the four stages on 13 Hilti sequences. On exp09 ("hilti05", the cupola, narrow staircases) the ATE goes from 55 cm for FAST-LIO2 to 23 cm for Voxel-SLAM's odometry alone, 15.9 cm with local mapping, 14.2 cm with loop closure, 13.8 cm with global mapping. On exp15 ("hilti07") the same columns read 72, 15.7, 9.8, 9.2 and 7.8 cm. Most of the gain over FAST-LIO2 is in the first two steps, before any loop is closed. That is the claim I wanted to test.

Top: a top-down point cloud of a valley about 800 by 440 m, coloured by height, with the flight path in white and a degeneration point marked on the right. Middle: the same map from the front. Bottom: three close-ups of the same area: (c) FAST-LIO2's map, blurred and doubled; (d) Voxel-SLAM odometry with local mapping, sharper; (e) the full system with global mapping, sharpest.
A 4.3 km drone flight over a valley (MARS-LVIG AMvalley03). The close-ups compare FAST-LIO2 (c), Voxel-SLAM's odometry with local mapping (d) and the full system with global mapping (e) on the same patch of ground (Voxel-SLAM paper, Figure 10).

Building it without ROS

Upstream is a ROS 1 Noetic catkin package: one executable, voxelslam, about 8,300 lines across voxelslam.cpp, voxel_map.hpp, BTC.cpp and seven more files, with GTSAM for the pose graphs. The rule for this run was no ROS in any form, not even a RoboStack prefix. That turned out to be a small job, because the code uses very little of ROS:

So the port is a directory of stand-in headers at the paths the code includes (ros/ros.h, sensor_msgs/Imu.h, pcl_conversions/pcl_conversions.h, tf/transform_broadcaster.h, …): plain structs with the fields the code reads, a NodeHandle whose param reads a key-value file written from the repository's own YAML, publishers that do nothing, and a spinOnce that calls my feeder. pcl::fromROSMsg becomes PCL's own fromPCLPointCloud2. The upstream files are compiled as they are, with eleven edits applied by a script that checks each one matches exactly once:

The driver reads the shootout's converted sequence (imu.csv, scans.csv and one binary file of points per sweep, with each point's time since sweep start), hands every message to Voxel-SLAM's own imu_handler and pcl_handler in timestamp order, and runs upstream's three threads unchanged. Points are handed over as x, y, z and a float time, which is the layout upstream's Velodyne reader takes, so the config's lidar_type is set to that reader; the deskew, downsampling and blind-radius logic after it is the same for every sensor. The feed is back-pressured: the next scan goes in only when the previous one has been consumed and the loop-closure queue holds no more than one window of scans, which is the state the system is in when it keeps up with a live sensor. When the data runs out, the driver raises finish, the parameter upstream expects someone to set by hand, and global mapping runs.

The dependencies come from conda-forge inside the job directory: PCL 1.15, GTSAM 4.3, Eigen 5, TBB and a gcc 15 toolchain. Upstream targets PCL 1.10, GTSAM 4.0.3 and Eigen 3.3.7 on Ubuntu 20.04; it compiled against the newer ones with no source change beyond the edits above.

How I scored it

Four sequences, all with a reference trajectory made without any of the systems under test, converted once by the shootout harness and read by every system the same way:

sequenceriglengthwhat makes it hard
Hilti 2022 exp14_basement_2Hesai PandarXT-32, 400 Hz IMU38 m, 74 sa basement whose walls are a metre away
Oxford Spires keble-college-03Hesai QT64, 400 Hz IMU283 m, 286 sa walk round a college quad, one big loop
Hilti 2022 exp16_attic_to_upper_gallery_2Hesai PandarXT-32, 400 Hz IMU117 m, 200 stwo narrow stairwells, about 8 m down and 8 m up
Newer College 2021 parkOuster OS0-128, 200 Hz IMU2.4 km, 26 mina long loop through a park, start and end 0.4 m apart

The first two are the sequences the FAST-LIO2 article used. exp16 is one of the three Hilti 2022 sequences with a dense public reference (the Hilti datasets article explains how it is made), and the only one of them with stairs, which is where the paper says Voxel-SLAM gains most. The park is the long loop where closing it should matter.

Every run went through one scoring script: each IMU pose moved into the reference's body frame, the reference interpolated at the estimate's timestamps, one SE(3) Umeyama fit without scale, ATE as the RMS position error after that fit, RPE over every metre of path with evo. A run is "diverged" if any error passes the larger of 10 m and a quarter of the path, or if its poses cover less than 80% of the reference. The machine is a 28-core Blackwell workstation, CPU only.

Voxel-SLAM ran three ways, each from the repository's own config for the sensor (hesai.yaml, the authors' Hilti config, for both Hesai rigs; ouster.yaml for the Ouster):

The last of these is not quite the paper's "Odom" row. In the paper that ablation switches local mapping off; here local mapping runs, and the EKF registers each new scan against planes that the local BA has already refined. What the ekf row isolates is the pose before the window revisits it, not an odometry with no BA anywhere. Disabling local mapping would have meant editing the algorithm, which I did not do.

Timing comes from a separate serial pass, one run at a time, pinned to four cores (taskset -c 0-3), with the local BA's thread_num set to 4 (the config ships 5). The number is wall time per scan inside the odometry-and-local-mapping thread: from the moment a scan and its IMU are synced to the end of its local-BA and marginalisation step. The loop-closure and global-mapping threads run beside it and are not in that number; global BA after the session is reported separately. Peak memory is the process's high-water mark.

The maps are built the same way for every variant, so they differ only by poses: each scan's deskewed, 0.1 m-downsampled points (0.4 m on the Ouster), as Voxel-SLAM kept them, placed by that variant's poses, then moved into the reference frame by the trajectory's own alignment and cut to a 3 cm grid. Sharpness is the harness's wall test: the median RMS point-to-plane distance over 1 m patches that are planar. A clean map scores about 5 to 10 mm on it; a doubled wall scores tens.

What it did on four walks

Every run finished, none reset, and every one is ok under the harness's rules. ATE is after one SE(3) alignment, without scale, against each dataset's reference. Every row below ran on the same machine through the same harness; the whole field is in the LIO shootout.

ATE, RMSEHilti exp14 (38 m)Oxford Spires (283 m)Hilti exp16 (117 m, stairs)NC park (2.4 km)
Voxel-SLAM, odometry alone (ekf)3.38 cm6.79 cm9.62 cm24.8 cm
Voxel-SLAM, odometry + local BA (odom)3.42 cm6.59 cm9.63 cm24.7 cm
Voxel-SLAM, full SLAM (slam)3.15 cm3.20 cm8.21 cm24.2 cm
PV-LIO, its hesai.yaml3.95 cm10.9 cm1.73 m
FAST-LIO2, indoor-tuned map11.5 cm6.23 cmdiverged28.7 cm
Super-LIO, shipped config15.2 cm8.63 cmdiverged26.3 cm
α-LiDAR27.1 cm

The FAST-LIO2 article's earlier runs, on another machine with a ROS 2 harness, gave FAST-LIO2 50.1 cm and 7.2 cm and Super-LIO 9.3 and 8.0 cm on exp14 and Spires.

On the three short sequences the full system is the most accurate thing the site has run. On the Oxford walk it halves the odometry's error, from 6.59 to 3.20 cm, and the end-point drift (the last pose's error when the trajectory is aligned on its first 10 s only) falls from 29.4 cm to 7 mm. That is what a loop closure is for: the walk returns to its start, BTC proposed 45 candidates over the walk, 29 passed the checks and were added as edges, and the pose graph was optimised once, at ScanPose 2,731 of 2,857, when the drift those edges revealed finally crossed the 0.10 m bar.

On the two Hilti sequences no loop was ever accepted (exp14 produced no BTC candidate at all, exp16 two that failed the checks), and full SLAM is still better: 3.42 to 3.15 cm in the basement, 9.63 to 8.21 cm through the stairwells. That gain is the global BA alone, which in the timing pass took 0.16 s at the end of exp14, 0.88 s at the end of exp16 and 4.4 s at the end of Spires. The paper claims exactly this: "Even in cases where no loop retrieval is detected... the global mapping can still improve the accuracy." It holds here.

The comparison that matters most is exp16, the Sheldonian stairwells. PV-LIO runs the same kind of map (VoxelMap's probabilistic planes) under the same kind of filter, and with its shipped Hilti config it drifts to 1.73 m there; the PV-LIO article traces that to one event on the climb back to the attic. Voxel-SLAM's odometry, on planes the local BA keeps refining, holds the same stretch to 9.6 cm.

A side section through the Sheldonian Theatre as a point cloud, coloured green to red by height: the roof truss and cupola at the top, the auditorium's tiers in the middle, and two narrow stairwells boxed in red at left and right, with the white trajectory spiralling up and down each of them.
The paper's own map of the Sheldonian sequence it calls hilti05 (Hilti 2022 exp09), built by the full system. The boxed stairwells are the kind of place exp16 also walks through (Voxel-SLAM paper, Figure 9).

In the basement the two are close (3.42 against 3.95 cm). Outdoors, PV-LIO's Hilti config is the outlier, and its generic config reaches 4.71 cm, still behind Voxel-SLAM's 3.20.

Against FAST-LIO2 on the same machine, the odometry is no better. On Spires FAST-LIO2 with an indoor-sized map tracks to 6.23 cm, against 6.59 cm for Voxel-SLAM with local BA; Voxel-SLAM pulls ahead only once the loop closes (3.20 cm, against the Spires paper's own 0.11 m in its Table 3 for Fast-LIO-SLAM on this sequence). Indoors it is clearer: 3.42 against 11.5 cm in the basement, and on exp16 FAST-LIO2 and Super-LIO both diverged where Voxel-SLAM held to 9.6 cm. Voxel-SLAM's shipped Hilti config uses 1 m root voxels split down to 0.25 m planes on a 0.1 m-downsampled scan, which is the setting a room needs.

What does not show up

The local BA does not move the ATE. ekf and odom are within 0.2 cm of each other on all three sequences (3.38 and 3.42, 6.79 and 6.59, 9.62 and 9.63). That looks like it contradicts the paper's Table II, where local mapping takes the cupola sequence from 23 to 15.9 cm. It does not, quite: as the method section says, the ekf pose here is registered against planes the local BA has already corrected, so the window's work reaches the online pose through the map one scan later. What these runs say is that on these sequences the refinement of the newest ten poses adds little on top of that. They do not say what Voxel-SLAM's odometry would do without local mapping at all.

The maps do not separate the variants either. The harness's wall test gives 26.8 mm for full SLAM against 27.1 mm for odometry in the basement, 36.9 against 37.9 mm on Spires, 41.9 against 42.1 mm on exp16, all well above the 5 to 10 mm a clean map scores on it. The points behind those numbers are the ones Voxel-SLAM itself kept: one per 0.1 m voxel per scan, accumulated over hundreds of scans, which spreads a wall into a slab a few centimetres thick before any pose error enters. A few centimetres of ATE difference is invisible at that resolution, so the viewer below shows the full-SLAM map alone. Floors score better than walls everywhere but the basement, 5.0 mm on exp16 at best.

Top-down point map of the Keble College quad coloured by height, cut below 1.6 m: a square lawn crossed by two paths, building facades all round in orange, with the reference path in black and the aligned full-SLAM estimate in red lying on top of it around the quad and into a side court.
Oxford Spires from above: the full-SLAM map, reference path and aligned estimate (ATE 3.20 cm). Rendered by the shootout harness from my run.

What it costs

per scan, 4 pinned coresHilti exp14Oxford SpiresHilti exp16
mean / p95 / max, full SLAM11.2 / 20.8 / 47.1 ms55.6 / 79.8 / 332.7 ms21.3 / 53.1 / 83.3 ms
peak memory, full SLAM378 MB4,263 MB1,176 MB
global BA after the session0.16 s4.4 s0.88 s

These are from the serial timing pass: one run at a time, four cores, the local BA on four threads. The time per scan is the odometry-and-local-mapping thread only; loop closure and keyframe BA run in their own threads beside it. On the Hilti sequences the system has room to spare (the sweeps come every 100 ms). On Spires it averages 55.6 ms and stays under 100 ms to the 95th percentile, with the slowest scan at 332.7 ms. The paper's Table VI reports 8 ms of odometry and 13 ms of local mapping per scan on the Hilti sequences on an i7-10750H, which is in line with 11.2 and 21.3 ms here.

Against FAST-LIO2 the bill is large. On Spires, on the same four pinned cores, FAST-LIO2 took 10.4 ms a scan and 320 MB; Voxel-SLAM takes about five times the time and thirteen times the memory. Most of the memory is long-term data association by design: every scan's points are kept, as keyframes for loop closure and as submaps for global BA. The paper's own memory column for Hilti is 1.068 GB on average.

The shipped Hilti config is also the wrong one for a college quad, by the paper's own rule (1 m voxels and 0.1 m downsampling indoors, 2 m and 0.25 m outdoors). I ran that outdoor setting on Spires as a separate, labelled row: full SLAM 3.02 cm, odometry 6.29 cm, at 34.1 ms a scan and 2,184 MB. Those timings came from the parallel pass, with other runs on the machine, so they are not directly comparable with the serial numbers above; the accuracy is. Going the other way in the basement, a 0.5 m root voxel (the low end of hesai.yaml's own "indoor: 0.5-1" comment) gave 2.95 cm for full SLAM and 3.40 cm for odometry.

The park: 916 loop edges, no optimisation

The Newer College park is the 2.4 km, 26-minute loop where loop closure should matter most, and it barely moved: 24.8 cm for the odometry alone, 24.2 cm for full SLAM. The logs say why. BTC proposed 1,107 loop candidates and 916 passed the checks and were added as edges, but the pose graph was never optimised. Voxel-SLAM only solves the graph when a loop reveals more than 0.10 m of drift, and on this walk none did: the odometry came back round the park with 4.5 cm of end-point drift. The edges sat in the graph unused, and at the end of the session the code rebuilds the graph for global BA without them. On the park the system ran 24.8 ms a scan (parallel pass) and peaked at 8.5 GB.

So why 24 cm, when the drift is 5 cm? Not timing: shifting the estimate by 50 ms either way makes the ATE worse, so there is no clock offset. Not scale: a similarity alignment only takes it to 22.7 cm. Not the reference frame: the reference is in the rig's base frame, about 7.6 cm from the IMU, which the harness applies, and the whole lever arm is smaller than the error. Most of the error is vertical (18.9 cm RMS, against 8.1 and 12.8 cm in x and y), and it varies slowly along the path, 17 cm of it on a 30-second scale, the same in all three variants. The other systems that track the park land in the same place too: FAST-LIO2 28.7 cm, Super-LIO 26.3 cm, α-LiDAR 27.1 cm (RKO-LIO reached 71.5 cm and KISS-ICP, LiDAR alone, 1.72 m). A floor of about 25 cm shared by four different estimators points at the vertical axis of this sequence, the reference or the sensor, more than at any of them. I have not found which, and I would not read the park row as a ranking.

Is it really good?

Yes. On three public sequences with independent ground truth, Voxel-SLAM's full system is the most accurate thing this site has measured, and on the fourth it is level with the rest of the field: 3.15 cm in a basement, 3.20 cm over 283 m outdoors with one loop closed, 8.21 cm down and up two stairwells, with no tuning and no resets. Where a cousin on the same plane map (PV-LIO) loses 1.73 m on the stairs, it does not. That is the paper's central claim, and it held.

What I would qualify is where the accuracy comes from. On these walks the windowed BA hardly moves the error by itself; what moves it is loop closure when there is a loop, and the global BA at the end even when there is none. Both are batch steps that only finish when the session does. If you need a pose now, for a robot, you get Voxel-SLAM's odometry, and on Spires that is 6.6 cm, level with FAST-LIO2's 6.2: better indoors, not a different class. If you want the map, as I do for scans of buildings, the full system is the one to run. Budget five times FAST-LIO2's CPU and gigabytes of memory for a five-minute walk, and set the voxel for the place, as the paper says to.

The code is GPL-2.0 and ROS 1 only, and the session end is a parameter you set by hand. None of that stopped it building against 2026 libraries with no ROS at all.

For the same question asked of a camera and an IMU instead of a LiDAR, see Accord, which scores its dense maps against laser scans the same unforgiving way: placed by its own trajectory, no scale fitted.

Notes on the method

Cite this article

For attribution, please use the following reference or BibTeX:

Satyajit Ghana, "Voxel-SLAM: plane bundle adjustment from the FAST-LIO2 lab, built without ROS and measured", ai.satyajit.si, November 2026.

bibtex
@misc{ghana2026voxelslam,
  author = {Satyajit Ghana},
  title  = {Voxel-SLAM: plane bundle adjustment from the FAST-LIO2 lab, built without ROS and measured},
  url    = {https://ai.satyajit.si/articles/voxel-slam},
  year   = {2026}
}
share