State estimation · University · about 30 min
The shape every filter has: a model that guesses forward, a measurement that pulls it back.
[1 mark]Put one tick of the lesson's fusion loop in order.
Number the lines 1 to 4 to put them in the right order.
measured = START_GAP - distance()est = 0.9 * est + 0.1 * measuredplot("estimate", est)est += flow()[1] * DT[1 mark]Three ticks of predict and correct with made-up sensor values. What does it print?
DT, START_GAP = 0.1, 110.0
est = 0.0
for speed, d in ((20.0, 107.0), (20.0, 103.0), (20.0, 104.0)):
est += speed * DT
measured = START_GAP - d
est = 0.9 * est + 0.1 * measured
print(round(est, 2))[1 mark]What is measured - est called?
[1 mark]The plotted innovation is consistently positive. What does that say?
[1 mark]Why does predict and correct keep up with a moving robot better than a low pass filter on the distance alone?
[1 mark]The correct step is changed to est = 0.98 * est + 0.02 * measured. What is the filter now trusting?
[1 mark]The robot has no velocity sensor. What does the lesson suggest as the model for the predict step?
Drive at least 40 cm towards the wall, running predict and correct, plotting measured and estimate, and print my y:. position() is not allowed.
from bugbot import * connect() DT = 0.1 START_GAP = 110.0 est = 0.0
Plan your program here, then type it in and press Run.