Organizations: Centre for Advanced Robotics Technology Innovation (CARTIN), School of Electrical and Electronic Engineering, Nanyang Technological University, 50 Nanyang Avenue, Singapore 639798 · A*STAR Institute of Advanced Intelligence and Computing (A*STAR IAIC), Singapore · Spatial AI & Robotics Lab, Department of Computer Science and Engineering, University at Buffalo, Buffalo, NY 14260, USA · NTU-VinUni Joint Research Laboratory for Robotics and Embodied AI, School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore 639798, and also with VinUniversity, Hanoi 100000, Vietnam
Visual-inertial-leg (VIL) state estimation offers cost-effective localization for legged robots, adding only a camera to the onboard IMU and joint encoders. However, learning-based leg odometry is limited by its supervision: networks trained in simulation suffer from the sim-to-real gap, while real-world labels require costly sensors or inherit the errors of visual estimates. To address this, we present AirLeg, a self-supervised VIL SLAM system in which vision and leg proprioception improve each other from training to deployment. We pre-train the leg odometry network in simulation and adapt it to the robot without ground truth through imperative learning, where multi-sensor bundle adjustment uses the leg odometry to refine the visual map, which in turn supervises the network. During deployment, the fused estimates adapt the network online. To improve both localization and this supervision, a dual-window estimator fuses vision, IMU, and leg odometry, relates loaded feet to the visually reconstructed terrain through a deformation-aware constraint, and weights the constraints by variance component estimation. AirLeg completes all 17 GrandTour sequences with the lowest average error (0.19 m) among 19 methods. On a low-cost quadruped, it achieves the lowest drift (0.6%) with only 0.5 h of unlabeled data, in real time on an embedded computer.
Figures & tables
Fig. 2: Architecture of the leg odometry network. A temporal window of IMU measurements, joint positions and velocities, and normalized foot forces is embedded into tokens and processed by a Transformer encoder. The last-token feature is passed to three MLP heads that predict the body-frame linear velocity, body-twist uncertainty, and an angular-velocity correction. The gyro-correction head additionally receives the raw gyroscope measurement.
Item
Settings
Terrains
Flat, slopes, stairs, gaps, hurdles, and mixed parkour courses, each with 10 difficulty levels
Base mass ×[0.85,1.15] , CoM offset ±2 cm, limb mass ×[0.9,1.1]
Actuators
Gains ×[0.7,1.3] , strength ×[0.85,1.1] , joint friction, armature, zero offsets, and delays
Disturbances
Random external forces, torques, and pushes
TABLE I: Simulation settings.
Fig. 3: Overview of imperative sim-to-real adaptation. In the forward pass (solid arrows), the predictions of the leg odometry network fθ are integrated into relative poses with covariances and fused with the visual factors in lower-level BA, weighted by variance component estimation (VCE), and the refined map μ∗ supervises the network through the upper-level objective U . In back-propagation (dashed arrows), the full gradient of U sums a direct term through the differentiable integration and an indirect term through the refined map, obtained as gij by a sparse adjoint solve without unrolling BA.
Fig. 4: Overview of the online visual-inertial-leg localization system. The leg odometry network converts the IMU and joint measurements into relative motions between keyframes to aid the short-window stereo VO. The long-window fusion module combines the visual relative-pose, long-span landmark, leg odometry, foot-terrain, and inertial factors, with their weights calibrated by online VCE. The matured fused estimates supervise an online update of the low-rank adapters of the network, and the estimated gyroscope bias is fed back to the leg odometry.
Fig. 5: Foot-terrain constraint. (a) A loaded foot at keyframe i rests on the terrain reconstructed earlier from superframe j , so the foot-terrain factor relates Ti directly to Tj , bypassing the drift accumulated along the keyframe chain. (b) The residual is the signed distance between the foot center pij and a local plane (q,n) , corrected by the foot radius a and the contact offset δ .
TABLE II: ATE RMSE [m] on the GrandTour dataset. Best and second-best results are shown in bold and underlined .
Fig. 6: Low-cost quadruped platform and real-world test environments. (a) Unitree Go2 equipped with an Intel RealSense D455 camera and an NVIDIA Jetson AGX Orin. (b) Test scenes, including dense vegetation, stairs, grass, slopes, a textureless corridor, pebbles, a walkway at night, and a multi-lap route.
TABLE III: Drift error on the Go2 sequences. Best and second-best results are shown in bold and underlined .
Fig. 7: Test in a crowded shopping mall (Crowd in Table III ). Top: map with the trajectory of AirLeg and the pedestrians. Bottom: views at A and B, and the trajectory near the start and end, with a drift of 1.01% over 124 m.
Method
LC
ETH-2
SPX-3
LEE-1
SNOW-3
RIV-1
Avg.
211 m
101 m
332 m
145 m
204 m
OKVIS2 [ 52 ]
w/o
0.20
F
0.52
F
0.17
0.30 ∗
w/
0.15
F
0.18
0.06
0.14
0.13 ∗
ORB-SLAM3 [ 26 ]
w/o
0.37
4.61 †
0.56
0.15
0.23
1.18
w/
0.32
0.42 †
0.64
0.16
0.20
0.35
Cerberus [ 33 ]
w/o
0.65
0.37
1.52
0.33
1.69
0.91
TABLE IV: ATE RMSE [m] without (w/o) and with (w/) loop closure. The best result of each sequence is shown in bold .
Fig. 8: Generalization of the sim-to-real adaptation across scenes. (a) t-SNE embedding of the foot-terrain interaction of individual strides; each map highlights one scene category over all strides (gray). (b) Mean ATE of the networks adapted on different scenes (rows) and tested on each scene category (columns); the framed cells denote the same scene for adaptation and testing.
Fig. 9: Effect of the amount of real-world adaptation data. Top: composition of the nested training sets by scene category, with the number of sequences above each bar. Bottom: ATE on the 17 test sequences of Table II .
Setting
ATE / vertical error [m]
Normal
Challenging
All
Full system
0.148 / 0.052
0.225 / 0.054
0.189 / 0.053
w/o indirect gradient
0.156 / 0.054
0.243 / 0.058
0.202 / 0.056
w/o foot-terrain
0.153 / 0.060
0.252 / 0.071
0.205 / 0.066
w/o online adaptation
0.151 / 0.054
0.261 / 0.099
0.209 / 0.078
w/o VCE
0.159 / 0.053
0.257 / 0.065
0.211 / 0.060
TABLE V: Ablation study on the GrandTour test sequences.
Module
Trigger rate [Hz]
Runtime [ms]
w/o adapt.
w/ adapt.
Leg odometry forward
Network inference
125
4.1
4.9
Integration
125
0.1
0.1
Frame pose estimation
Feature extraction
10
16.9
19.3
TABLE VI: Runtime and resource usage analysis on a Jetson AGX Orin.
Dept. of Mechanical Engineering, SNU, Seoul, S. Korea · Mobile Robotics Lab, School of Computation, Information and Technology (CIT) at the Technical University of Munich (TUM), 80333 Munich, Germany, and with the Munich Institute of Robotics and Machine Intelligence (MIRMI) · Mobile Robotics Lab, ETH Zurich, 80892 Zurich, Switzerland