srinivas.siteApplied RoboticsUnit 15

Unit 15 · Perception & Navigation · about 96 min

Localization and mapping

Mission: Compare the rover’s estimated position with three floor marks and decide what a map can add.

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

Steps

1. Set the route

Select “Travel to mark one” and compare the drawing with the simulated readout.

Why it matters: The mission is to compare where the rover thinks it is with each marked floor position. Start from a common origin and face along +x.

2. Read the wheels

Select “Show the wheel estimate” and compare the drawing with the simulated readout.

Why it matters: Odometry integrates wheel readings to estimate pose. In this example each wheel reports 1.0 m.

3. Meet slip

Select “Add simulated slip” and compare the drawing with the simulated readout.

Why it matters: Slip means wheel rotation does not all become floor travel. A wheel-only estimate cannot directly see it.

4. Compare three marks

Select “Compare the marks” and compare the drawing with the simulated readout.

Why it matters: Accumulated error is the difference between estimate and reference as travel proceeds. Signed coordinate errors and their Euclidean separation are different quantities.

5. Locate the rover

Select “Show the pose” and compare the drawing with the simulated readout.

Why it matters: Localization estimates the rover position and orientation in a chosen frame. A map instead represents features of the surroundings.

6. Allow for uncertainty

Select “Grow the bound” and compare the drawing with the simulated readout.

Why it matters: Assume both wheels have at most 0.1 m unobserved travel error per 1.0 m reported and zero heading error. The shown radius is an illustrative position bound for this straight example, not measured uncertainty or a probability.

7. Place a fixed map

Select “Show fixed landmarks” and compare the drawing with the simulated readout.

Why it matters: A surveyed map stores independently established landmark coordinates. It does not by itself say where the rover is now.

8. Ask the map a question

Select “Show map alone” and compare the drawing with the simulated readout.

Why it matters: A fixed map alone cannot correct a current pose. It must be connected to an independent current observation of a known feature.

9. Use a current observation

Select “Observe a known landmark” and compare the drawing with the simulated readout.

Why it matters: This exact idealized relative observation is expressed in the world frame with orientation assumed known. It corrects position only and does not repair a heading error.

10. Build a drifting map

Select “Place observed features” and compare the drawing with the simulated readout.

Why it matters: Mapping estimates surrounding features from observations and poses. A map placed using drifting poses inherits those errors and is not ground truth.

11. Repeat honestly

Select “Replay the same route” and compare the drawing with the simulated readout.

Why it matters: Identical inputs yield identical results here. Independent runs require fresh physical measurements, not repeated animation.

12. Plan your floor test

Select “Show the test route” and compare the drawing with the simulated readout.

Why it matters: A marked route is a valid bounded first solution. Record all three marks on three real runs and report whether mapping was actually tested.

Go deeper

Accumulated error and coordinate uncertainty

Δx = x_odom − x_reference; Δy = y_odom − y_reference
separation = √(Δx² + Δy²)

The straight-route bound assumes zero heading error and at most 0.1 m of unobserved travel per 1.0 m of wheel reading. Heading error also propagates into position in a general route; this simplified circle does not bound that case. It is not a probability, measured calibration, or 95% confidence region.

The ideal observation uses a known surveyed landmark and an exact independently observed world-frame displacement, with orientation assumed known. Real sensors have error and data association can fail. Position-only correction leaves heading unchanged. A map built from drifting odometry is not an independent reference.

Video question: Why does a robot gradually lose its place? Wheel readings can differ from ground travel, so errors accumulate; external observations can help only when they are independently tied to a reference.

Optional primary references below provide robot motion and course background; they do not validate this simulation or physical results. Matrix algebra helps with the Stanford lecture.