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

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
  1. APreset, exactly as the link opens it.
  2. 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.

QuantityWhere to read itAB
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

  1. Run B assumes noisier sensors. After the nudge, does its estimate follow the true angle more or less closely?

  2. 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?

Source: eigenroom.com/worksheets/cart/kalmanCite: EIGENROOM. (2026). Estimate the hidden velocities [Lab worksheet]. Accessed YYYY-MM-DD. https://eigenroom.com/worksheets/cart/kalman