EIGENROOMLAB WORKSHEET 13Cart-pole · State space
Estimate the hidden velocities
NameSectionDate
Goal
Measure how the assumed sensor variance changes a Kalman filter's estimate of the pole angle after a nudge.
Setup
Lab eigenroom.com/lab?lesson=kalman · short link eigenroom.com/kalman
Open it on a phone or a computer; there is nothing to log in to or install. The link loads run A's settings:
- Initial angle
- 6°
- Controller type
- LQR with Kalman filter display
- Position cost
- 10
- Angle cost
- 100
- Force cost
- 1
- Process variance Q
- 0.00001
- Sensor variance R
- 0.001
- Sensor noise
- 0.3
- Disturbance events
- Nudge cart 1.2 N·s at 1.4 s
- Recording
- 8 s
- APreset, exactly as the link opens it.
- BChange only: Sensor variance R → 0.01.
Pin each run before you change a setting, so you can compare runs at the same replay time.
1. Predict
Can position and angle sensors reveal velocity when measurements are noisy?
Write your prediction and a reason before you run anything.
2. Observe
Read each value in the lab and write it in the table.
| Quantity | Where to read it | A | B |
|---|---|---|---|
| True angle at t = 2 s (°) | State estimate plot | ||
| Measured angle at t = 2 s (°) | State estimate plot | ||
| Estimated angle at t = 2 s (°) | State estimate plot | ||
| |Estimated − true angle| at t = 2 s (°) | State estimate plot | ||
| Peak angle (°) | Measured response |
3. Explain
Run B assumes noisier sensors. After the nudge, does its estimate follow the true angle more or less closely?
Why are the peak angle and the cart motion identical in both runs?
Extension (optional)
Lower the assumed sensor variance to 0.0001. Does the estimate track the nudge more closely, and what does it follow instead of the model?