$30
COMP 417
Assignment 3: Mapping and Estimation (15 points)
Hand-in: As a single PDF file on My Courses.
Learning goal: Prep for MT2
Q1 (5 points): A 1D robot walks through the “2 door” environment, shown below.
The motion model is π₯π‘ = π₯π‘−1 + π’π‘−1 + π with π~π©(0, 0.2
2
).
The measurement model is:
π(π§π‘
|π₯π‘) = {
π(π§ == 1) = 0.9 πππ π(π§ == 0) = 0.1, ππ π₯π‘
ππ ππ πππππ‘ πππ ππππ
π(π§ == 1) = 0.1 πππ π(π§ == 0) = 0.9, ππ π₯π‘
ππ ππ πππππ‘ πππ π€πππ.
The robot is using a particle filter with N=10 particles to estimate is position. Its initial belief,
πππ(π₯0), is represented by 10 vertical lines, shown below, where the horizontal position (x-axis)
is the sampled state and the height (w-axis) is the particle weight (all are equal at this stage).
The robot takes two steps and makes two measurements: π’0 = 1, π§1 = 0, π’1 = 1, π§2 = 0.
Propose the value of one particle (state and weight) that is likely to be a part of the estimate of
πππ(π₯2). Show the series of computations that would lead to these values, starting from the
πππ(π₯0) shown and mentioning each intermediate value computed along the way, as the controls
and measurements are processed by the algorithm.
Note that a particle filter has inherent randomness, so there are many different proposals
possible. Marking will be based on the details used to justify yours. However, do not assume
extremely unlikely events, as this would be interpreted as a lack of understanding.
-1 0 1 2 3 4
0.1
w
x
Q2 (5 points): Assume that a robot’s belief in its current state, π, is modeled as a normal
distribution (Gaussian), over the x, and y dimensions of a 2D state-space. This means the
likelihood of it being at any state is:
π(π) ∝ π
−(π₯−π)
πΣ
−1
(π₯−π)
,
for mean vector π = [
ππ₯
ππ¦
] and covariance matrix Σ = [
πππ(π₯) πΆππ£(π₯, π¦)
πΆππ£(π₯, π¦) πππ(π¦)
].
A robot begins from the origin (0,0) with perfect certainty of its location. The robot is omnidirectional and can control its cross-track error precisely, with 1 cm/m variance, but it has poor
distance control, making 10 cm/m variance errors in stopping distance. It moves to the point
(1,1) along two different paths:
a) Straight-line: It tries to move sqrt(2) meters in the 45 degree direction along line y=x.
b) L-shaped: It tries to move 1 meter right and then 1 meter up.
Write the 6 values that describe the Gaussian (2 mean vector terms, 4 covariance matrix terms)
for situations a) and b). Sketch the ellipse formed by the 1-sigma confidence bound. Explain
your reasoning – the explanation and correct mapping between the meaning of the terms and
the problem situation are more important than the precise values computed.
Q3: Assume a robot with a 1D state-space starts at the origin (x=0), it makes 2 motions,
following controls π’0 and π’1, and takes two sensory measurements, π§1 and π§2, of the a
landmark, π1 with known position (that is, we are doing localization, not SLAM).
Using the probabilistic form of the Bayes filter, write out the expression for π(π₯2|π’0, π’1, π§1, π§2),
also known as our belief in the robot’s location at time t=2, πππ(π₯2
). Make sure your final
expression is composed of only the 3 basic elements of a Bayes filter:
a) The initial belief (the belief in the robot’s location at time 0), π(π₯0
) = πππ(π₯0
).
b) The measurement model, π(π§π‘
|π₯π‘
)
c) The motion model, π(π₯π‘
|π₯π‘−1, π’π‘−1)
(of course, each of these can be repeated, have their t indices replaced by integers, and
combined in math as needed)
Show your work and clearly draw a box around the final expression.
π1
π’0
π₯1
π§1
π§2
π’1
π₯2
π₯0