Visual Odometry: Motion Drift & Loop-Closure Correction
Interactive 3D visual-odometry simulator: a robot camera tracks landmark features frame-to-frame and dead-reckons its trajectory, accumulating drift like a random walk — toggle loop-closure correction to see how revisiting a known location snaps the drift back down.
A robot camera drives a closed loop through a field of tracked landmarks. Every simulated frame it matches a set of feature correspondences against the previous frame and dead-reckons its next position from that noisy motion estimate — exactly how monocular visual odometry works before any global map correction is added. Because each frame's error is independent, the estimated trajectory (red) drifts away from the true path (blue) like a random walk, growing roughly with the square root of elapsed frames. Fewer tracked landmarks or noisier matches make the drift worse; more landmarks average it down. Switch on loop-closure correction to see what turns odometry into SLAM: each time the robot completes a lap and re-recognizes its starting landmarks, the accumulated drift gets pulled back toward the true pose instead of growing forever.
Watch a robot camera dead-reckon its position from noisy frame-to-frame feature tracking — the estimated trajectory drifts away from ground truth like a random walk unless loop-closure correction is switched on to snap it back.
3D · Three.js / WebGL renderer · 60 FPS target · runs fully client-side, no install