Checking your account

You can read the lesson while its saved answers and constructions load. Learning controls will open once that work is ready.

State Estimation and Tracking

Give the motion estimate and camera their stated influence

Coding challenges

BOTIE

Build the predicted mean, gain and innovation branch that returns the corrected position.
Ready to test
0 passed · 0 failed · 2 not run

An empty floor. Start with the information your machine needs.

Received result

Your answer will arrive here.

Examples, experiments and workspace controls
Live values

Connect a tool's inputs to see what it produces. You can try a branch before connecting it to Result.

Try your own inputs

Use a copy of the example to try your own data. Keep the problem's assumptions in mind, and predict the effect of a change before checking the output. You can also add another branch to compare two ways of doing the calculation.

Start at an output arrow, then click or drag to an input. Drag empty space to pan. Delete removes a selection. Ctrl/Cmd+Z undoes a change.
Context for this challenge

Build the predicted mean, gain and innovation branch that returns the corrected position.

The simulated belt movement predicts one position and the camera reports another. Use their supplied error variances to decide how much the estimate should change.

Inspect the component calculation
Add(
  First contribution: Add(
    First contribution: Earlier position mean in m
    Second contribution: Expected displacement in m
  )
  Second contribution: Multiply(
    Value: Divide(
      Amount: Add(
        First contribution: Earlier position variance in m²
        Second contribution: Independent added motion variance in m²
      )
      Divisor: Add(
        First contribution: Add(
          First contribution: Earlier position variance in m²
          Second contribution: Independent added motion variance in m²
        )
        Second contribution: Camera-error variance in m²
      )
    )
    Multiplier: Subtract(
      Starting value: Camera position at the new time in m
      Value to remove: Add(
        First contribution: Earlier position mean in m
        Second contribution: Expected displacement in m
      )
    )
  )
)
Examples and results
Earlier position mean in m
2
Expected displacement in m
2
Earlier position variance in m²
1
Independent added motion variance in m²
3
Camera-error variance in m²
1
Camera position at the new time in m
5
Required result
4.8
Earlier position mean in m
2
Expected displacement in m
2
Earlier position variance in m²
1
Independent added motion variance in m²
3
Camera-error variance in m²
1
Camera position at the new time in m
4
Required result
4
Try a fresh construction

This clears this draft, including its undo history. Earlier successful attempts stay recorded. Build again without opening hints to record an independent attempt.

Stuck? Inspect a worked construction

The tools below form one possible solution. You can assemble it, follow its signals, and undo that change to return to your own construction.

Assumptions and test precision

This follows one position coordinate with known expected movement and the stated independent linear-Gaussian error model. It does not train a detector, control hardware or establish physical accuracy. Numerical tests allow a difference of 0.001. Lists and structures must also have the right shape.

Your last tested pieces can start the full construction. An existing draft there keeps its own pieces.

A reversed measurement pulls the next prediction back

This check uses the pieces from “Build the correction rather than always replacing the position”.

BOTIE

The earlier position mean is -1 m, with variance 2 m². Expected displacement is 3 m and added motion variance is 2 m². The new camera reading is 1 m with variance 4 m². Predict both corrected quantities.
Earlier position mean in m
-1
Earlier position variance in m²
2
Expected displacement in m
3
Independent added motion variance in m²
2
Camera position at the new time in m
1
Camera-error variance in m²
4

Use a number, text, or an array matching the requested result. A named result uses field names, such as {"count": 2}. For a matrix, put each row in brackets. Saving your prediction runs your current construction on these inputs and checks the earlier examples too.

Build a construction in the workspace above first. This case will test those pieces.

What would invalidate adding the two error variances?

Carry the independence and model assumptions with the uncertainty numbers.

This follows one position coordinate with known expected movement and the stated independent linear-Gaussian error model. It does not train a detector, control hardware or establish physical accuracy.

Continue the courseWhen the Camera Misses a Frame, Keep Predicting Honestly →
← Remember What the Actuator Could Actually Do