dave lattanzi’s rrt algorithm. general concept use dictionaries for trees create a randomized...

8
Dave Lattanzi’s RRT Algorithm

Upload: norah-mcdaniel

Post on 18-Dec-2015

215 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

Dave Lattanzi’s RRT Algorithm

Page 2: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

General Concept

• Use dictionaries for trees• Create a randomized stack of nodes• Iterate through stack• “Extend” each tree towards last node• Check for intersections at each step

Page 3: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

Main Function

Page 4: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

“Extend” Function

• Build a dictionary of nodes in tree and their distances to the random node

• Search dictionary to get nearest node – Almost certainly not optimal

• Call “step” until trapped, goal, or found path• Check for intersections after each step– Doesn’t return for intersection

Page 5: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

“Extend” Function

Page 6: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

“Step” Function

• Finds all neighbors of a node & their distances to random node

• Finds the neighbor with the minimum distance, passes that to Extend as new node

• If the specified node is the closer than all neighbors to the random node, the tree is declared “trapped”

Page 7: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

“Step” and “FindIntersection”

Page 8: Dave Lattanzi’s RRT Algorithm. General Concept Use dictionaries for trees Create a randomized stack of nodes Iterate through stack “Extend” each tree

Conclusions:

• Tight corners are an issue

• Fast (usually)– Time is random

• Could be optimized