Lecture8 PDF
Lecture8 PDF
"Position"
Localization Cognition
Global Map
Probabilistic Map
Based Localization
Two solutions
Markov localization (today)
Kalman filter localization (next lecture)
Further references:
Thrun, Fox, Burgard, “Probabilistic Robotics,” MIT Press, 2005.
As it starts to move (say from a precisely known location) it can keep track
of its location using wheel odometry.
However, after a certain movement the robot will get very uncertain about
its position => Thus, it should update its position by making “observations”
of the environment
x
The robot queries its sensors and finds it is
next to a pillar
Because the data coming from the robot sensors are affected by
measurement errors, we can only compute the probability that the robot is
in a given configuration.
The key idea in probabilistic robotics is to represent uncertainty using
probability theory: instead of giving a single best estimate of the current
robot configuration, probabilistic robotics represents the robot configuration
as a probability distribution over the all possible robot poses. This
probability is called belief.
0 x
1
N
N
x
Remember that in order to be a probability distribution a function p(x) must
always satisfy the following constraint:
p( x)dx 1
p ( x) ( x a )
x
Note, the Dirac distribution is usually represented with an arrow.
The Dirac function (x) is defined as:
if x 0
( x)
0 otherwise
with ( x)dx 1
2
where μ is the mean value and σ is the standard deviation.
The Gaussian distribution is also called normal distribution and is usually
abbreviated with N(μ ,σ ).
x
© R. Siegwart, D. Scaramuzza ETH Zurich - ASL
5 - Localization and Mapping
5
11
Description of the probabilistic localization problem
Consider a mobile robot moving in a known environment.
Probability of
making this
observation
Robot belief
before the
observation
Using the Theorem of Total probability, we compute the robot’s belief after
the motion as
p( zt | xt ) p( xt )
p( xt | zt )
p ( zt )
bel ( xt ) p( zt | xt )bel ( xt )
where η is a normalization factor which makes the probability integrate to 1.
p( zt | xt ) p( xt )
p( xt | zt )
p ( zt )
p( xt )
p( zt | xt )
Perception update
bel ( xt ) p( zt | xt )bel ( xt )
Action update
p( zt | xt )
p( zt | xt )
Perception update
bel ( xt ) p( zt | xt )bel ( xt )
Action update
p( zt | xt )
p( zt | xt )
Perception update
bel ( xt ) p( zt | xt )bel ( xt )
Action update
p( zt | xt )
p( zt | xt )
Perception update
bel ( xt ) p( zt | xt )bel ( xt )
Action update
p( zt | xt )
Markov Kalman
• The configuration space is divided into • The probability distribution of both the
many cells. The configuration space of a robot configuration and the sensor model is
robot moving on a plane is 3D dimensional assumed to be continuous and Gaussian!
(x,y,θ). Each cell contains the probability of
the robot to be in that cell. • Since a Gaussian distribution is only
described by its mean value μ and
• The probability distribution of the sensors variance Σ2, we need only to update μ and
model is also discrete. Σ2. Therefore the computational cost is
very low!
• During Action and Perception, all the cells
are updated. Therefore, the computational
cost is very high
"Position"
Localization Cognition
Global Map
For sake of simplicity let us consider a robot moving in a one dimensional environment (e.g.
moving on a rail). Therefore the robot configuration space can be represented through the sole
variable x.
Let us discretize the configuration space into 10 cells
Suppose that the robot’s initial belief is a uniform distribution from 0 to 3. Observe that all the
elements were normalized so that their sum is 1.
Action phase:
Let us assume that the robot moves forward with the following statistical model
This means that we have 50% probability that the robot moved 2 or 3 cells forward.
Considering what the probability was before moving, what will the probability be after the motion?
*
You can now verify that these equations are computing nothing but the cross correlation in
the Action update or the Theorem of Total probability
This plot tells us that the distance of the robot from the origin can be equally 5 or 6 units.
What will the final robot belief be after this measurement?
The answer is again given by the Bayes rule:
bel ( xt ) p( zt | xt )bel ( xt )
© R. Siegwart, D. Scaramuzza ETH Zurich - ASL
5 - Localization and Mapping
5
36 Markov Localization: Case Study 2 – Grid Map (5)