47
SA-1 Probabilistic Robotics SLAM and FastSLAM

Probabilistic Robotics

  • Upload
    faunus

  • View
    74

  • Download
    0

Embed Size (px)

DESCRIPTION

Probabilistic Robotics. SLAM and FastSLAM. The SLAM Problem. SLAM stands for simultaneous localization and mapping originally developed by Hugh Durrant -Whyte and John J. Leonard “Mobile robot localization by tracking geometric beacons” - 1991 - PowerPoint PPT Presentation

Citation preview

Page 1: Probabilistic Robotics

Probabilistic Robotics

SLAM and FastSLAM

Page 2: Probabilistic Robotics

2

SLAM stands for simultaneous localization and mapping originally developed by Hugh Durrant-Whyte and John J. Leonard “Mobile robot localization by tracking geometric beacons” - 1991

The task of building a map while estimating the pose of the robot relative to this map

Why is SLAM hard? Chicken and egg problem: A map is needed to localize the robot and

a pose estimate is needed to build a map Errors correlate!

The SLAM Problem

Page 3: Probabilistic Robotics

3

SLAM ApplicationsIndoors

Space

Undersea

Underground

Page 4: Probabilistic Robotics

4

Typical Robot Equipment Mobile robot

Typically want error under 2 cm per meter moved 2° per 45° degrees turned

Page 5: Probabilistic Robotics

5

Typical Robot Equipment Range finding

sensors Sonar

10 mm accuracy 4 m range

SICK laser 10 mm accuracy 80 m range

IR range finder 1.5 m range

Vision Increasingly viable

Page 6: Probabilistic Robotics

6

Outline of typical SLAM Process

Page 7: Probabilistic Robotics

7

Representations Grid maps or scans

[Lu & Milios, 97; Gutmann, 98: Thrun 98; Burgard, 99; Konolige & Gutmann, 00; Thrun, 00; Arras, 99; Haehnel, 01;…]

Landmark-based

[Leonard et al., 98; Castelanos et al., 99: Dissanayake et al., 2001; Montemerlo et al., 2002;…

Page 8: Probabilistic Robotics

8

Given: The robot’s

controls Observations of

nearby featuresEstimate: Map of features Path of the

robot

The SLAM ProblemA robot moving though an unknown, static environment

Page 9: Probabilistic Robotics

9

Why is SLAM a hard problem?

SLAM: robot path and map are both unknown!

Robot path error increases errors in the map

Page 10: Probabilistic Robotics

10

Structure of the Landmark-based SLAM-Problem

Page 11: Probabilistic Robotics

11

Page 12: Probabilistic Robotics

12

Page 13: Probabilistic Robotics

13

Page 14: Probabilistic Robotics

14

Page 15: Probabilistic Robotics

15

Page 16: Probabilistic Robotics

16

Page 17: Probabilistic Robotics

17

Page 18: Probabilistic Robotics

18

Page 19: Probabilistic Robotics

19

Page 20: Probabilistic Robotics

20

Why is SLAM a hard problem?

In the real world, the mapping between observations and landmarks is unknown

Picking wrong data associations can have catastrophic consequences

Robot poseuncertainty

Page 21: Probabilistic Robotics

21

Detecting Landmarks Look for spikes in range

data Red dots show table legs

Fit geometric primitives RANSAC line fitting

algorithm Don’t want to fit to all data Pick a random subset Fit a primitive

Classify remaining points as outlier or not Keep if enough points

classify well Keep a full occupancy map

Each cell is a landmark

Page 22: Probabilistic Robotics

22

(E)KF SLAM Represent robot state and landmark

position all in one big state ( rx, ry, l1x, l1y, l2x, l2y,…) Apply Kalman filter to state update and

observations Uncertainty represented in large

covariance matrix

Page 23: Probabilistic Robotics

23

For many applications, the time update and measurement equations are NOT linear The KF is not directly applicable

Linearize around the non-linearities Use of the KF is extended to more

realistic situations

Kalman Filter and Linearity

Page 24: Probabilistic Robotics

24

The Extended Kalman (EKF) is a sub-optimal extension of the original KF algorithm

The EKF allows for estimation of non-linear processes or measurement relationships

The Extended Kalman Filter (EKF)

),(),,(1

kkk

kkkk

vxhzwuxfx

kkk

kkkk

vxHzwuBxAx

1

Kalman Filter Extended Kalman Filter

Page 25: Probabilistic Robotics

25

Linearity Assumption Revisited

Page 26: Probabilistic Robotics

26

Non-linear Function

Page 27: Probabilistic Robotics

27

EKF Linearization (1)

Page 28: Probabilistic Robotics

28

EKF Linearization (2)

Page 29: Probabilistic Robotics

29

EKF Linearization (3)

Page 30: Probabilistic Robotics

30

2

2

2

2

2

2

2

1

21

2221222

1211111

21

21

21

,),(

NNNNNN

N

N

N

N

N

llllllylxl

llllllylxl

llllllylxl

lllyx

ylylylyyxy

xlxlxlxxyx

N

tt

l

ll

yx

mxBel

Map with N landmarks:(3+2N)-dimensional Gaussian

Can handle hundreds of dimensions

(E)KF-SLAM

Page 31: Probabilistic Robotics

31

EKF-SLAM

Map Correlation matrix

Page 32: Probabilistic Robotics

32

EKF-SLAM

Map Correlation matrix

Page 33: Probabilistic Robotics

33

EKF-SLAM

Map Correlation matrix

Page 34: Probabilistic Robotics

34

EKF-SLAM Can be quadratic in number of

landmarks Non-linearities a problem

Has led to other approaches

Page 35: Probabilistic Robotics

35

Is there a dependency between the dimensions of the state space?

If so, can we use the dependency to solve the problem more efficiently?

In the SLAM context The map depends on the poses of the robot. We know how to build a map if the position of the

sensor is known.

Dependencies

Page 36: Probabilistic Robotics

36

FastSLAM Rao-Blackwellized particle filtering based on

landmarks [Montemerlo et al., 2002] Each landmark is represented by a 2x2

Extended Kalman Filter (EKF) Each particle therefore has to maintain M EKFs

Landmark 1 Landmark 2 Landmark M…x, y,

Landmark 1 Landmark 2 Landmark M…x, y, Particle#1

Landmark 1 Landmark 2 Landmark M…x, y, Particle#2

ParticleN

Page 37: Probabilistic Robotics

37

FastSLAM – Action Update

Particle #1

Particle #2

Particle #3

Landmark #1Filter

Landmark #2Filter

Page 38: Probabilistic Robotics

38

FastSLAM – Sensor Update

Particle #1

Particle #2

Particle #3

Landmark #1Filter

Landmark #2Filter

Page 39: Probabilistic Robotics

39

FastSLAM – Sensor Update

Particle #1

Particle #2

Particle #3

Weight = 0.8

Weight = 0.4

Weight = 0.1

Page 40: Probabilistic Robotics

40

Multi-Hypothesis Data Association

Data association is done on a per-particle basis

Robot pose error is factored out of data association decisions

Page 41: Probabilistic Robotics

41

Improved Proposal The proposal adapts to the structure

of the environment

Page 42: Probabilistic Robotics

42

Per-Particle Data Association

Was the observationgenerated by the redor the blue landmark?

P(observation|red) = 0.3 P(observation|blue) = 0.7

Two options for per-particle data association Pick the most probable match Pick an random association weighted by

the observation likelihoods If the probability is too low, generate a new

landmark

Page 43: Probabilistic Robotics

43

Results – Victoria Park

4 km traverse < 5 m RMS

position error 100 particles

Dataset courtesy of University of Sydney

Blue = GPSYellow = FastSLAM

Page 44: Probabilistic Robotics

44

Selective Re-sampling Re-sampling is dangerous, since

important samples might get lost(particle depletion problem)

Key question: When should we re-sample?

Page 45: Probabilistic Robotics

45

Typical Evolution of particle number

visiting new areas closing the

first loop

second loop closure

visiting known areas

Page 46: Probabilistic Robotics

46

Intel Lab 15 particles four times faster

than real-timeP4, 2.8GHz

5cm resolution during scan matching

1cm resolution in final map

Page 47: Probabilistic Robotics

47

More Details on FastSLAM M. Montemerlo, S. Thrun, D. Koller, and B. Wegbreit. FastSLAM: A

factored solution to simultaneous localization and mapping, AAAI02

D. Haehnel, W. Burgard, D. Fox, and S. Thrun. An efficient FastSLAM algorithm for generating maps of large-scale cyclic environments from raw laser range measurements, IROS03

M. Montemerlo, S. Thrun, D. Koller, B. Wegbreit. FastSLAM 2.0: An Improved particle filtering algorithm for simultaneous localization and mapping that provably converges. IJCAI-2003

G. Grisetti, C. Stachniss, and W. Burgard. Improving grid-based slam with rao-blackwellized particle filters by adaptive proposals and selective resampling, ICRA05

A. Eliazar and R. Parr. DP-SLAM: Fast, robust simultanous localization and mapping without predetermined landmarks, IJCAI03