64
Probabilistic Robotics Bayes Filter Implementations Particle filters

Probabilistic Robotics

  • Upload
    enan

  • View
    37

  • Download
    0

Embed Size (px)

DESCRIPTION

Probabilistic Robotics. Bayes Filter Implementations Particle filters. Sample-based Localization (sonar). Particle Filters. Represent belief by random samples Estimation of non-Gaussian, nonlinear processes - PowerPoint PPT Presentation

Citation preview

Page 1: Probabilistic Robotics

Probabilistic Robotics

Bayes Filter Implementations

Particle filters

Page 2: Probabilistic Robotics

Sample-based Localization (sonar)

Page 3: Probabilistic Robotics

Represent belief by random samples

Estimation of non-Gaussian, nonlinear processes

Monte Carlo filter, Survival of the fittest, Condensation, Bootstrap filter, Particle filter

Filtering: [Rubin, 88], [Gordon et al., 93], [Kitagawa 96]

Computer vision: [Isard and Blake 96, 98] Dynamic Bayesian Networks: [Kanazawa et al., 95]d

Particle Filters

Page 4: Probabilistic Robotics

Weight samples: w = f / g

Importance Sampling

Page 5: Probabilistic Robotics

Importance Sampling with Resampling:Landmark Detection Example

Page 6: Probabilistic Robotics

Distributions

Page 7: Probabilistic Robotics

7

Distributions

Wanted: samples distributed according to p(x| z1, z2, z3)

Page 8: Probabilistic Robotics

This is Easy!We can draw samples from p(x|zl) by adding noise to the detection parameters.

Page 9: Probabilistic Robotics

Importance Sampling with Resampling

),...,,(

)()|(),...,,|( :fon distributiTarget

2121

n

kk

n zzzp

xpxzpzzzxp

)(

)()|()|( :gon distributi Sampling

l

ll zp

xpxzpzxp

),...,,(

)|()(

)|(

),...,,|( : w weightsImportance

21

21

n

lkkl

l

n

zzzp

xzpzp

zxp

zzzxp

g

f

Page 10: Probabilistic Robotics

Importance Sampling with Resampling

Weighted samples After resampling

Page 11: Probabilistic Robotics

Particle Filters

Page 12: Probabilistic Robotics

)|()(

)()|()()|()(

xzpxBel

xBelxzpw

xBelxzpxBel

Sensor Information: Importance Sampling

Page 13: Probabilistic Robotics

'd)'()'|()( , xxBelxuxpxBel

Robot Motion

Page 14: Probabilistic Robotics

)|()(

)()|()()|()(

xzpxBel

xBelxzpw

xBelxzpxBel

Sensor Information: Importance Sampling

Page 15: Probabilistic Robotics

Robot Motion

'd)'()'|()( , xxBelxuxpxBel

Page 16: Probabilistic Robotics

1. Algorithm particle_filter( St-1, ut-1 zt):

2.

3. For Generate new samples

4. Sample index j(i) from the discrete distribution given by wt-

1

5. Sample from using and

6. Compute importance weight

7. Update normalization factor

8. Insert

9. For

10. Normalize weights

Particle Filter Algorithm

0, tS

ni 1

},{ it

ittt wxSS

itw

itx ),|( 11 ttt uxxp )(

1ij

tx 1tu

)|( itt

it xzpw

ni 1

/it

it ww

Page 17: Probabilistic Robotics

draw xit1 from Bel(xt1)

draw xit from p(xt | xi

t1,ut1)

Importance factor for xit:

)|()(),|(

)(),|()|(ondistributi proposal

ondistributitarget

111

111

tt

tttt

tttttt

it

xzpxBeluxxp

xBeluxxpxzp

w

1111 )(),|()|()( tttttttt dxxBeluxxpxzpxBel

Particle Filter Algorithm

Page 18: Probabilistic Robotics

Resampling

• Given: Set S of weighted samples.

• Wanted : Random sample, where the probability of drawing xi is given by wi.

• Typically done n times with replacement to generate new sample set S’.

Page 19: Probabilistic Robotics

w2

w3

w1wn

Wn-1

Resampling

w2

w3

w1wn

Wn-1

• Roulette wheel

• Binary search, n log n

• Stochastic universal sampling

• Systematic resampling

• Linear time complexity

• Easy to implement, low variance

Page 20: Probabilistic Robotics

1. Algorithm systematic_resampling(S,n):

2.

3. For Generate cdf4. 5. Initialize threshold

6. For Draw samples …7. While ( ) Skip until next threshold reached8. 9. Insert10. Increment threshold

11. Return S’

Resampling Algorithm

11,' wcS

ni 2i

ii wcc 1

1],,0]~ 11 inUu

nj 1

11

nuu jj

ij cu

1,'' nxSS i

1ii

Also called stochastic universal sampling

Page 21: Probabilistic Robotics

Start

Motion Model Reminder

Page 22: Probabilistic Robotics

Proximity Sensor Model Reminder

Laser sensor Sonar sensor

Page 23: Probabilistic Robotics

23

Page 24: Probabilistic Robotics

24

Page 25: Probabilistic Robotics

25

Page 26: Probabilistic Robotics

27

Page 27: Probabilistic Robotics

28

Page 28: Probabilistic Robotics

29

Page 29: Probabilistic Robotics

30

Page 30: Probabilistic Robotics

31

Page 31: Probabilistic Robotics

32

Page 32: Probabilistic Robotics

33

Page 33: Probabilistic Robotics

34

Page 34: Probabilistic Robotics

35

Page 35: Probabilistic Robotics

36

Page 36: Probabilistic Robotics

37

Page 37: Probabilistic Robotics

38

Page 38: Probabilistic Robotics

39

Page 39: Probabilistic Robotics

40

Page 40: Probabilistic Robotics

41

Page 41: Probabilistic Robotics

42

Sample-based Localization (sonar)

Page 42: Probabilistic Robotics

43

Initial Distribution

Page 43: Probabilistic Robotics

44

After Incorporating Ten Ultrasound Scans

Page 44: Probabilistic Robotics

45

After Incorporating 65 Ultrasound Scans

Page 45: Probabilistic Robotics

46

Estimated Path

Page 46: Probabilistic Robotics

Using Ceiling Maps for Localization

Page 47: Probabilistic Robotics

Vision-based Localization

P(z|x)

h(x)z

Page 48: Probabilistic Robotics

Under a Light

Measurement z: P(z|x):

Page 49: Probabilistic Robotics

Next to a Light

Measurement z: P(z|x):

Page 50: Probabilistic Robotics

Elsewhere

Measurement z: P(z|x):

Page 51: Probabilistic Robotics

Global Localization Using Vision

Page 52: Probabilistic Robotics

53

Robots in Action: Albert

Page 53: Probabilistic Robotics

54

Application: Rhino and Albert Synchronized in Munich and Bonn

[Robotics And Automation Magazine, to appear]

Page 54: Probabilistic Robotics

Localization for AIBO robots

Page 55: Probabilistic Robotics

56

Limitations

•The approach described so far is able to • track the pose of a mobile robot and to• globally localize the robot.

•How can we deal with localization errors (i.e., the kidnapped robot problem)?

Page 56: Probabilistic Robotics

57

Approaches

•Randomly insert samples (the robot can be teleported at any point in time).

• Insert random samples proportional to the average likelihood of the particles (the robot has been teleported with higher probability when the likelihood of its observations drops).

Page 57: Probabilistic Robotics

58

Random SamplesVision-Based Localization936 Images, 4MB, .6secs/imageTrajectory of the robot:

Page 58: Probabilistic Robotics

59

Odometry Information

Page 59: Probabilistic Robotics

60

Image Sequence

Page 60: Probabilistic Robotics

61

Resulting Trajectories

Position tracking:

Page 61: Probabilistic Robotics

62

Resulting Trajectories

Global localization:

Page 62: Probabilistic Robotics

63

Global Localization

Page 63: Probabilistic Robotics

64

Kidnapping the Robot

Page 64: Probabilistic Robotics

66

Summary

• Particle filters are an implementation of recursive Bayesian filtering

• They represent the posterior by a set of weighted samples.

• In the context of localization, the particles are propagated according to the motion model.

• They are then weighted according to the likelihood of the observations.

• In a re-sampling step, new particles are drawn with a probability proportional to the likelihood of the observation.