38
NUS CS 5247 David Hsu 1 Last lecture Multiple-query PRM Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu1 Last lecture Multiple-query PRM Lazy PRM (single-query PRM)

  • View
    253

  • Download
    0

Embed Size (px)

Citation preview

Page 1: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 1

Last lecture Multiple-query PRM Lazy PRM (single-query PRM)

Page 2: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu

Single-Query PRMSingle-Query PRM

Page 3: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 3

Randomized expansion Path Planning in Expansive Configuration Spaces,

D. Hsu, J.C. Latombe, & R. Motwani, 1999.

Page 4: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 4

Overview

1. Grow two trees from Init position and Goal configurations.

2. Randomly sample nodes around existing nodes.

3. Connect a node in the tree rooted at Init to a node in the tree rooted at the Goal.

Init Goal

Expansion + Connection

Page 5: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 5

1. Pick a node x with probability 1/w(x).

Disk with radius d, w(x)=3

Expansion

root

2. Randomly sample k points around x.

3. For each sample y, calculate w(y), which gives probability 1/w(y).

Page 6: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 6

1. Pick a node x with probability 1/w(x).

Expansion

root

2. Randomly sample k points around x.

3. For each sample y, calculate w(y), which gives probability 1/w(y).

1 2

3

1/w(y1)=1/5

Page 7: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 7

1. Pick a node x with probability 1/w(x).

Expansion

root

2. Randomly sample k points around x.

3. For each sample y, calculate w(y), which gives probability 1/w(y).

1 2

3

1/w(y2)=1/2

Page 8: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 8

1. Pick a node x with probability 1/w(x).

Expansion

root

2. Randomly sample k points around x.

3. For each sample y, calculate w(y), which gives probability 1/w(y).

1 2

3

1/w(y3)=1/3

Page 9: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 9

1. Pick a node x with probability 1/w(x).

Expansion

root

2. Randomly sample k points around x.

3. For each sample y, calculate w(y), which gives probability 1/w(y). If y

1 2

3

(a) has higher probability; (b) collision free; (c) can sees x

then add y into the tree.

Page 10: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 10

Sampling distribution Weight w(x) = no. of neighbors Roughly Pr(x) 1 / w(x)

Page 11: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 11

Effect of weighting

unweighted sampling weighted sampling

Page 12: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 12

Connection

If a pair of nodes (i.e., x in Init tree and y in Goal tree) and distance(x,y)<L, check if

x can see y

Init Goal

YES, then connect x and y

x

y

Page 13: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 13

Termination condition

The program iterates between Expansion and Connection, until

two trees are connected, or max number of expansion & connection steps is reached

Init Goal

Page 14: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 14

Computed example

Page 15: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu

Expansive SpacesExpansive Spaces

Analysis of Probabilistic Analysis of Probabilistic RoadmapsRoadmaps

Page 16: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 16

Issues of probabilistic roadmaps Coverage Connectivity

Page 17: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 17

Is the coverage adequate? It means that milestones are distributed such that almost any point

of the configuration space can be connected by a straight line segment to one milestone.

Bad Good

Page 18: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 18

Connectivity There should be a one-to-one correspondence between the

connected components of the roadmap and those of F.

Bad Good

Page 19: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 19

Narrow passages Connectivity is difficult to capture when there are narrow

passages.

Characterize coverage & connectivity? Expansiveness

Narrow passages are difficult to define.

easydifficult

Page 20: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 20

Definition: visibility set Visibility set of q

All configurations in F that can be connected to q by a straight-line path in F All configurations seen by q

q

Page 21: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 21

Definition: Є-good Every free configuration sees at least є fraction of the

free space, є in (0,1].

0.5-good 1-good

F is 0.5-good

Page 22: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 22

Definition: lookout of a subset S Subset of points in S that can see at least β fraction of F\S, β is in (0,1].

S F\S

0.4-lookout of S

This area is about

40% of F\S

S F\S

0.3-lookout of S

Page 23: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 23

S F\S F is ε-good ε=0.5

Definition: (ε,α,β)-expansive The free space F is (,,)-expansive if

Free space F is -good For each subset S of F, its β-lookout is at least

fraction of S. ,, are in (0,1]

β-lookout β=0.4

Volume(β-lookout)Volume(S) =0.2

F is (ε, α, β)-expansive, where ε=0.5, =0.2, β=0.4.

Page 24: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 24

Why expansiveness? ,, and measure the expansiveness of a free

space.

Bigger ε, α, and β lower cost of constructing a roadmap with good connectivity and coverage.

Page 25: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 25

Uniform sampling

All-pairs path planning

Theorem 1 : A roadmap of

uniformly-sampled milestones has the correct connectivity with probability at least .

6)/1ln(16

1

Page 26: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 26

p3

pn

Pn+1

q

p2

Definition: Linking sequence

p

p1

Pn+1 is chosen from the lookout of the subset seen by p, p1,…,pn

Visibility of p

Lookout of V(p)

Page 27: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 27

p3

pn

Pn+1

q

p2

Definition: Linking sequence

p

p1

Pn+1 is chosen from the lookout of the subset seen by p, p1,…,pn

Visibility of p

Lookout of V(p)

Page 28: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 28

qp

Space occupied by linking sequences

Page 29: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 29

Size of lookout set

A C-space with larger lookout set has higher probability of constructing a linking sequence.

small lookout big lookout

p

p1

Page 30: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 30

Lemmas In an expansive space with large ,, and , we can

obtain a linking sequence that covers a large fraction of the free space, with high probability.

Page 31: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 31

Theorem 1 Probability of achieving good connectivity increases

exponentially with the number of milestones (in an expansive space).

If (ε, α, β) decreases then need to increase the number of milestones (to maintain good connectivity)

Page 32: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 32

Theorem 2 Probability of achieving good coverage, increases

exponentially with the number of milestones (in an expansive space).

Page 33: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 33

Probabilistic completeness

In an expansive space, the probability that a PRM planner fails to find a path when one exists goes to 0 exponentially in the number of milestones (~ running time).

[Hsu, Latombe, Motwani, 97]

Page 34: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 34

Summary

Main result If a C-space is expansive, then a roadmap can be

constructed efficiently with good connectivity and coverage.

Limitation in practice It does not tell you when to stop growing the

roadmap. A planner stops when either a path is found or max

steps are reached.

Page 35: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 35

Extensions

Accelerate the planner by automatically generating intermediate configurations to decompose the free space into expansive components.

Page 36: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 36

Extensions

Accelerate the planner by automatically generating intermediate configurations to decompose the free space into expansive components.

Use geometric transformations to increase the expansiveness of a free space, e.g., widening narrow passages.

Page 37: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 37

Extensions

Accelerate the planner by automatically generating intermediate configurations to decompose the free space into expansive components.

Use geometric transformations to increase the expansiveness of a free space, e.g., widening narrow passages.

Integrate the new planner with other planner for multiple-query path planning problems.

Questions?

Page 38: NUS CS 5247 David Hsu1 Last lecture  Multiple-query PRM  Lazy PRM (single-query PRM)

NUS CS 5247 David Hsu 38

Two tenets of PRM planning A relatively small number of milestones and local

paths are sufficient to capture the connectivity of the free space. Exponential convergence in expansive free space (probabilistic completeness)

Checking sampled configurations and connections between samples for collision can be done efficiently. Hierarchical collision checking