55
CS686: RRT Sung-Eui Yoon (윤성의) Course URL: http://sglab.kaist.ac.kr/~sungeui/MPA

Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

CS686:RRT

Sung-Eui Yoon(윤성의)

Course URL:http://sglab.kaist.ac.kr/~sungeui/MPA

Page 2: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

2

Class Objectives● Understand the RRT technique and its

recent advancements● RRT*● Kinodynamic planning

Page 3: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

3

Rapidly-exploring Random Trees (RRT) [LaValle 98]● Present an efficient randomized path

planning algorithm for single-query problems● Converges quickly● Probabilistically complete● Works well in high-dimensional C-space

Page 4: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

4

Rapidly-Exploring Random Tree● A growing tree from an initial state

Page 5: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

5

RRT Construction Algorithm● Extend a new vertex in each iteration

qinit

ε

qqnear

qnew

Page 6: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

6

Overview – Planning with RRT● Extend RRT until a nearest vertex is close

enough to the goal state● Biased toward unexplored space● Can handle nonholonomic constraints and high

degrees of freedom● Probabilistically complete, but does not

converge

Page 7: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

7

Voronoi Region● An RRT is biased by large Voronoi regions

to rapidly explore, before uniformly covering the space

Page 8: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

8

Overview – With Dual RRT● Extend RRTs from both initial and goal

states● Find path much more quickly

737 nodes are used

Page 9: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

9

● Aggressively connect the dual trees using a greedy heuristic

● Extend & connect trees alternatively

Overview – With RRT-Connect

42 nodes are used

Page 10: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

10

RRT Construction Algorithm

Page 11: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

11

RRT Connect Algorithm

Page 12: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

RRT*● RRT does not converge to the optimal

solution

RRT

RRT*

From Sertac’s homepage

Page 13: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

RRT*- Asymptotically optimal without a substantial

computational overhead

- YnRRT* : cost of the best path in the RRT*

- c* : cost of an optimal solution- Mn

RRT : # of steps executed by RRT at iteration n- Mn

RRT*: # of steps executed by RRT* at iteration nFrom DH’s homepage

Page 14: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Key Operation of RRT*● RRT

● Just connect a new node to its nearest neighbor node

● RRT*: refine the connection with re-wiring operation● Given a ball, identify neighbor nodes to the

new node● Refine the connection to have a lower cost

Page 15: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

From ball tree paper

Page 16: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

Generate a new sample

From ball tree paper

Page 17: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

Identify nodes in a ball

From ball tree paper

Page 18: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

Identify which parent gives the lowest cost

From ball tree paper

Page 19: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

From ball tree paper

Page 20: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

Identify which child gives the lowest cost

From ball tree paper

Page 21: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Example: Re-Wiring Operation

From ball tree paper

Video showing benefits with real robot

Page 22: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

22

Kinodynamic Path Planning

● Consider kinematic + dynamic constraints

Page 23: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

23

State Space Formulation● Kinodynamic planning → 2n-dimensional

state spacespace thedenote C-C

space state thedenote X

XxCqqqx ,for ),,(

] [ 2121 dt

dqdt

dqdtdqqqqx n

n

Page 24: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

24

Constraints in State Space

● Constraints can be written in:nm,m,i

xxGqqqh ii

2 and 1for ,0),( becomes 0),,(

),( uxfx

inputsor controls allowable ofSet : , UUu

Page 25: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

25

Solution Trajectory● Defined as a time-parameterized

continuous path

● Obtained by integrating ● Solution: Finding a control function

sconstraint thesatisfies ,],0[: freeXT

),( uxfx

UTu ],0[:

Page 26: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

26

Rapidly-Exploring Random Tree● Extend a new vertex in each iteration

qinit

qqnear

qnewu

Page 27: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

27

Results – 200MHz, 128MB● 3D translating● X=6 DOF● 16,300 nodes● 4.1min

● 3D TR+RO● X=12 DOF● 23,800 nodes● 8.4min

Page 28: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

RRT at work: Urban Challenge

From MIT

Page 29: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Successful Parking Maneuver

Page 30: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

RRT at work: Autonomous Forklift

Page 31: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Recent Works of Our Group● Narrow passages

● Identify narrow passage with a simple one-dimensional line test, and selectively explore such regions

● Selective retraction-based RRT planner for various environments, Lee et al., T-RO 14

● http://sglab.kaist.ac.kr/SRRRT/T-RO.html

Page 32: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

32

Retration-based RRT [Zhang & Manocha 08]

● Retraction-based RRT technique handling narrow passages

● General characteristic: Generates more samples near the boundary of obstacles

image from [Zhang & Manocha 08]

Page 33: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

33

RRRT: Pros and Cons

with narrow passages without narrow passagesimages from [Zhang & Manocha 08]

Page 34: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

34

RRRT: Pros and Cons

with narrow passages without narrow passagesimages from [Zhang & Manocha 08]

Page 35: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

35

Bridge line-test [Lee et al., T-RO 14]● To identify narrow passage regions

● Bridge line-test1. Generate a random line 2. Check whether the line meets any obstacle

Page 36: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

36

Results

Video

Page 37: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

37

Recent Works of Our Group● Handling narrow passages

● Improving low convergence to the optimal solution

● Use the sampling cloud to indicate regions that lead to the optimal path

● Cloud RRT* : Sampling Cloud based RRT*, Kim et al., ICRA 14

● http://sglab.kaist.ac.kr/CloudRRT/

Page 38: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Examples of Sampling Cloud [Kim et al., ICRA 14]

Initial state of sampling cloud After updated several times

Video

Page 39: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Results: 4 squares

39

1.8X improvement

Page 40: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

Recent Works of Our Group●Handling narrow passages ●Improving low convergence to the optimal

solution●Accelerating nearest neighbor search

● VLSH: Voronoi-based Locality Sensitive Hashing, Loi et al., IROS 13

Page 41: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

41

Background on Locality Sensitive Hashing (LSH)● Randomly generate a

projection vector● Project points onto

vector● Bin the projected points

to a segment, whose width is w, i.e. quantization factor

● All the data in a bin has the same hash code

Quantization factor w

Page 42: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

42

Background on LSH● Multiple projections

NN of :

g1

g2

g3

Data pointsQuery point

Page 43: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

43

Wiper: Performance Evaluation

● VLSH vs. GNAT (Em):● 3.7x faster

● VLSH vs. LSH (Em):● 2.6x faster

Page 44: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

44

Handling Sensor Errors● Uncertainty caused by:

● Various sensors● Low-level controllers

Sensor noise Controller noise

Page 45: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

45

Rapidly-exploring Random Belief Tree[Bry et al., ICRA 11]

Use Kalman filter to propagate Gaussian states Improve solutions toward optimal

Number of iteration

500 1000 1500Preserve optimal path

Multiple belief nodes in the same vertex

Page 46: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

46

Main Contribution: Anytime Extension [Yang et al.,IROS 16]

Measurement region

Goalregion

Bigger circle means higher uncertainty

The robot computes better path while

executing the path

Page 47: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

47

Main Contribution:Anytime Extension

Page 48: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

48

Velocity Obstacle:Local Geometric Analysis

“The hybrid reciprocal velocity obstacle” TRO11 J Snape, J van den Berg, SJ Guy“Reciprocal velocity obstacles for real-time multi-agent navigation” J van den Berg“Generalized Velocity Obstacles” IROS09, D Wilkie, J Van den Berg

Page 49: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

49

Uncertainty-aware Velocity Obstacle as Local Geometry Analysis

Conservative collision checking

“The hybrid reciprocal velocity obstacle” TRO11 J Snape, J van den Berg, SJ Guy“Reciprocal velocity obstacles for real-time multi-agent navigation” J van den Berg“Generalized Velocity Obstacles” IROS09, D Wilkie, J Van den Berg

Page 50: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

50

Intersection scene – with UVO

Page 51: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

51

Result – Crowd scene

Page 52: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

52

Result – Crowd scene

Page 53: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

53

Class Objectives were:● Understand the RRT technique and its

recent advancements● RRT* for optimal path planning● Kinodynamic planning

Page 54: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

54

No More HWs on:● Paper summary and questions submissions

● Instead: ● Focus on your paper presentation and project

progress!

Page 55: Sung-Eui Yoon 윤성의 - KAISTsungeui/MPA_S17/Slides/Lecture6.pdf · Overview –Planning with RRT Extend RRT until a nearest vertex is close enough to the goal state Biased toward

55

Summary