610 likes | 760 Views
Probabilistic Robotics. Bayes Filter Implementations Particle filters. Sample-based Localization (sonar). Importance Sampling. Weight samples: w = f / g. Distributions. Distributions. Wanted: samples distributed according to p(x| z 1 , z 2 , z 3 ). This is Easy!.
E N D
Probabilistic Robotics Bayes Filter Implementations Particle filters
Importance Sampling Weight samples: w = f / g
Distributions Wanted: samples distributed according to p(x| z1, z2, z3)
This is Easy! We can draw samples from p(x|zl) by adding noise to the detection parameters.
Importance Sampling with Resampling Weighted samples After resampling
Particle Filter Algorithm • Algorithm particle_filter( St-1, ut-1 zt): • For Generate new samples • Sample index j(i) from the discrete distribution given by wt-1 • Sample from using and • Compute importance weight • Update normalization factor • Insert • For • Normalize weights
draw xit-1from Bel(xt-1) draw xitfrom p(xt | xit-1,ut-1) Importance factor for xit: Particle Filter Algorithm
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’.
w1 wn w2 Wn-1 w1 wn w2 Wn-1 w3 w3 Resampling Implementation • Stochastic universal sampling • Systematic resampling • Linear time complexity • Easy to implement, low variance • Roulette wheel • Binary search, n log n
Resampling Algorithm • Algorithm systematic_resampling(S,n): • For Generate cdf • Initialize threshold • For Draw samples … • While ( ) Skip until next threshold reached • Insert • Increment threshold • ReturnS’ Also called stochastic universal sampling
Motion Model Reminder Start
Proximity Sensor Model Reminder Sonar sensor Laser sensor
P(z|x) z h(x) Vision-based Localization
Under a Light Measurement z: P(z|x):
Next to a Light Measurement z: P(z|x):
Elsewhere Measurement z: P(z|x):
Application: Rhino and Albert Synchronized in Munich and Bonn [Robotics And Automation Magazine, to appear]