srinivas.siteApplied RoboticsUnit 29

Unit 29 · Semester 2 · estimation

SLAM and visual-inertial odometry

Mission: Guide one small rover around a marked loop and decide whether its estimated return is trustworthy.

The interactive version of this unit needs JavaScript. Below are its steps as text.

Steps

1. Can the rover find the start again?

Press Reveal the loop. Follow the small rover from the marked start around the four corners and back.

Why it matters: A robot can follow a route and still be unsure where it is. For this demonstration, the drawn loop is the reference path, not a measurement from a real room.

2. Let internal motion add up

Press Integrate internal motion. Compare the orange estimate with the dark reference line.

Why it matters: An estimate formed by adding motion increments is convenient, but small errors can accumulate. This accumulated difference is called drift.

3. Give the rover a camera cue

Press Find visible corners. Compare the feature count and the blue camera-cued path.

Why it matters: A camera can observe scene structure as the rover moves. Matching image features across frames can constrain relative motion, but the camera cue here is generated data, not pixels from a real camera.

4. Combine two imperfect clues

Press Fuse camera and IMU. Read the teal path and the legend beside the drawing.

Why it matters: An inertial measurement unit (IMU) senses angular rate and acceleration. Visual-inertial odometry (VIO) combines camera observations with IMU measurements to estimate motion; this toy model illustrates the idea without processing actual sensor data.

5. Compare the full return

Press Compare endpoints. Read the three position errors in metres and the units beside each path.

Why it matters: VIO asks how the robot moved over time. It can reduce some drift, but a local motion estimate can still wander and does not by itself promise a persistent global map.

6. When the wall has few details

First answer the retrieval question: which two sensors feed VIO? Then press Reduce visible features.

Why it matters: Visual-inertial odometry depends on useful visual observations as well as inertial motion. A blank wall, blur or repeated patterns can make matching harder; a missing cue is not a zero-motion reading.

7. Notice the return marker again

Press Revisit the start marker. Look for the dashed link between the returning rover and the original corner.

Why it matters: Recognizing a previously seen place is called loop detection. A match can be wrong, so real systems check more than visual similarity before applying a correction.

8. Use the map to correct a loop

Press Apply illustrative loop correction. Compare the purple estimate with the teal path.

Why it matters: Simultaneous localization and mapping (SLAM) estimates a trajectory and a map together. Real SLAM systems optimize many related constraints; this drawing spreads one return mismatch evenly to teach the idea, not to imitate that optimization.

9. See a timestamp slip

First answer the retrieval question: what new evidence connects the return to the start? Then press Shift camera timing by one frame.

Why it matters: A timestamp says when a sensor sample was taken. If camera and IMU samples are paired at different moments, the estimated motion can be wrong even when each sensor works.

10. Let visual scale drift

Press Add a scale error. Compare the returned positions and the metre units on the axes.

Why it matters: A monocular image has no direct metre ruler. In real visual-inertial estimation, motion scale is inferred through the model and inertial measurements; poor initialization or assumptions can still cause scale error.

11. Measure the path error

Press Calculate trajectory errors. Read the fixed-frame position RMSE and each return error.

Why it matters: Root mean square error (RMSE) summarizes differences at corresponding times. The alignment rule matters: this page uses the same known start and axes and does not fit a new scale to make the estimate look better.

12. Save a reproducible comparison

Press Show the run card. Then open Notebook and keep your own setup and run details separate from the worked example.

Why it matters: A useful result says what pipeline ran, which reference was used, how it was aligned and what failed. These generated curves do not prove that you ran a real dataset or a physical robot.

Go deeper

What the toy model leaves out

The stage is a deterministic, fixed-frame 2D model. It does not render images, integrate accelerometer samples, estimate camera calibration, solve a nonlinear objective or optimize a pose graph. The camera-feature count, sensor bias, time offset and scale error are controlled teaching inputs, not measured quantities.

VIO and SLAM answer related questions

VIO estimates motion from camera and IMU measurements and can maintain a local trajectory without a persistent global map. SLAM estimates trajectory and map together; depending on the system, place recognition and loop constraints can improve global consistency. A loop match can be rejected or wrong, and map scale depends on sensor configuration, initialization and assumptions.

Primary research and dataset

Question for a public video

While watching a public VIO or SLAM demonstration, ask: “Why can revisiting a visual landmark reduce accumulated pose drift, yet still leave map scale or timestamp problems?” The syllabus does not verify a particular SLAM-specific video; use the papers above as the primary references.

Original curriculum mapping

Preserves the Unit 29 objective, Semester 2 placement and 20–30-hour scope. The nine-pose browser pipeline is a 100-minute introduction to a simulated trajectory/reference comparison. The optional TUM VI extension is the documented-dataset route; report its version, setup, trajectory error, runtime and failure condition. Feature-poor scenes, scale drift and mismatched timestamps remain explicit investigations.