Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott...

26
Implementation of RRT Implementation of RRT based Path planner and based Path planner and conversion into Temporal conversion into Temporal Plan Network Plan Network By: Aisha Walcott By: Aisha Walcott Final Project Presentation Final Project Presentation Dec. 10, 2001 Dec. 10, 2001 16.412J 16.412J
  • date post

    20-Dec-2015
  • Category

    Documents

  • view

    215
  • download

    3

Transcript of Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott...

Page 1: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Implementation of RRT Implementation of RRT based Path planner and based Path planner and conversion into Temporal conversion into Temporal Plan NetworkPlan Network

By: Aisha WalcottBy: Aisha WalcottFinal Project PresentationFinal Project PresentationDec. 10, 2001Dec. 10, 200116.412J16.412J

Page 2: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

MotivationMotivationScenario: ”Send Aid”•Displaced refugees are without food, shelter, and medical supplies•Need to send relief aid from another country to their location•Problem: Refugees located in a hostile and dangerous region

Solution: Send an autonomous air vehicle (UAV) to deliver aid

Page 3: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning: RRT Connect Path Path Planning: RRT Connect Path

PlannerPlanner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 4: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning: bRRT Connect Path Path Planning: bRRT Connect Path

PlannerPlanner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 5: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Ideally…Ideally…

Design a path planner that Design a path planner that adheres to the UAVs dynamic adheres to the UAVs dynamic constraints and avoids obstaclesconstraints and avoids obstacles

Describe a temporal plan that Describe a temporal plan that encodes the “encodes the “Send Aid”Send Aid” scenario scenario

Page 6: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Project ObjectivesProject Objectives

Implement a RRT-based path Implement a RRT-based path plannerplanner

Perform analysis based on a set of Perform analysis based on a set of parametersparameters

Develop a simulationDevelop a simulation Develop an algorithm to transform Develop an algorithm to transform

RRT to a Temporal Plan NetworkRRT to a Temporal Plan Network

Page 7: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning:RRT Connect Path Path Planning:RRT Connect Path

PlannerPlanner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 8: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Path Planning:Path Planning:RRT Connect Path RRT Connect Path PlannerPlanner Grow 2 RRTs into each otherGrow 2 RRTs into each other Use a greedy strategy to extend Use a greedy strategy to extend

treestrees

A

Common Node

Initial StateRRTA

BXobs

Goal StateRRTB

Page 9: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

RRT Connect Path RRT Connect Path PlannerPlanner

For i = 1 to max_iterations DoFor i = 1 to max_iterations Do

1. q1. qrandrand = random_config() = random_config()

2. if ( Extend(T2. if ( Extend(Taa, q, qrandrand) NOT = ) NOT = TrappedTrapped ) then ) then

3. if (Connect( T3. if (Connect( Tbb, q, qnewnew) = ) = Reached Reached ) then) then

4.4. Return PATH (TReturn PATH (Taa, T, Tbb))

5. Swap(T5. Swap(Taa, T, Tbb))

Return Return FailedFailed

TTaa

TTbb

qqrandrand

Extend: •Finds the nearest node in the current tree to qrand

•Extends a distance from the nearest neighbor node towards the random node•Generates a new node qnew if no collision (trapped)

Extend(Ta, qrand)

Connect:•Calls Extend(Tb,qnew) until either

•Extend returns trapped or•Ta’s new node was Reached

Connect(Tb, qnew)

qnew

trappedqnear

Page 10: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

RRT Connect AnalysisRRT Connect Analysis

Input Variables: Input Variables: max_iterations – number of iterationsmax_iterations – number of iterations

epsilon – extension distanceepsilon – extension distance obstacles – arrangement in worldobstacles – arrangement in world

close_enough – distance of when the 2 RRTs close_enough – distance of when the 2 RRTs are close enough to be connectedare close enough to be connected

Output:Output:path_found = if a path was found or notpath_found = if a path was found or notnodes – total number of nodes generatednodes – total number of nodes generated

path nodes – number of nodes along the path nodes – number of nodes along the pathpath

––

Page 11: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

RRT Connect AnalysisRRT Connect Analysis

Sample Test Case:Sample Test Case:– Vary max_iterations, analyze epsilon Vary max_iterations, analyze epsilon

valuesvalues– Output: path found?, total nodesOutput: path found?, total nodes

100,500,1000 iterations:•Epsilon = 3,4 no path found•Otherwise found path

50 iterations:•Found path epsilon> 17

Page 12: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning: RRT Connect Path Path Planning: RRT Connect Path

PlannerPlanner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 13: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

DemoDemo

Page 14: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

DemoDemo

Page 15: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

DemoDemo

Page 16: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning: RRT Connect Path Path Planning: RRT Connect Path

PlannerPlanner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 17: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Temporal Plan Network Temporal Plan Network (TPN)(TPN)

Represents activitiesRepresents activities Represents concurrent activities Represents concurrent activities

and decisions between activitiesand decisions between activities Encodes temporal and symbolic Encodes temporal and symbolic

constraints (state of agent or world)constraints (state of agent or world)– Lower bounds, upper boundsLower bounds, upper bounds– Ask(C) - requires that condition C is Ask(C) - requires that condition C is

truetrue– Tell(C) – asserts the condition C Tell(C) – asserts the condition C

Page 18: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

TPNTPN

““Send Aid”Send Aid” Scenario: (activities) Scenario: (activities)– Start UAV engine and load UAV with Start UAV engine and load UAV with

supplies supplies <concurrent activities><concurrent activities>– Take offTake off– Communicate take off status with baseCommunicate take off status with base– Fly to refugee region by choosing Path A or Fly to refugee region by choosing Path A or

Path B Path B <decision between two activities><decision between two activities>– Fly to specific location and drop supplies Fly to specific location and drop supplies

<concurrent activities><concurrent activities>– Return to baseReturn to base

Page 19: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Temporal Plan NetworkTemporal Plan Network

Drop_Off_Supplies:Drop_Off_Supplies:•Fly to refugee region by choosing Fly to refugee region by choosing Path A or Path B Path A or Path B •Fly to specific location and drop Fly to specific location and drop suppliessupplies

3

1

4 5

8

9 10

13

2

6 7 11 12

Drop_Off_Supplies [450,540]

Path B

[405, 486]

[405, 486]

Path APath to Specific Location

Drop Supplies

[0, 54]

[0, 2]

[0,0 ]

[0, 0]

[0, 0]

[0, 0]

[0, 0]

[0, 0]

[0, 0]

[0, 0]

[0, 0] [0, 0]

Decision Node

Temporal Constraints[ lower_bound, upper_bound ]

Activity Start Activity End

Page 20: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning:RRT Connect Path PlannerPath Planning:RRT Connect Path Planner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 21: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Conversion of RRT to Conversion of RRT to TPNTPN

Goal: encode the RRT in the TPNGoal: encode the RRT in the TPN Reason: Reason:

– A TPN planner exists that outputs a plan for A TPN planner exists that outputs a plan for activities that do not involve physical activities that do not involve physical movementmovement

– Use TPN planner to plan activities that involve Use TPN planner to plan activities that involve both non-physical and physical movementboth non-physical and physical movement

83

4 5

6 7

Path B

[405, 486]

[405, 486]

[0, 0]

[0, 0]

[0, 0]

[0, 0]

Path A

83

4 5

6 7

Path B

[405, 486]

[405, 486][0, 0]

[0, 0]

[0, 0]

[0, 0]

Path A

Page 22: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

RRT to TPNRRT to TPN

RRT After RRT-Connect Planner

A

E

B

C

D

1. Create two TPN nodes to denote the start and end of the RRT activity2. If an RRT node n has exactly one child then create a n.start and n.end TPN

node3. Else if RRT node n has more than one

child then -go to step 2.

-create a TPN decision node -for each child of n

go to step 2.

C.start

C.end

E.start

E.end

A.start

A.end

B.start

B.end

D.start

D.endResult: RRT becomes a TPN with

“dead end” branches

Page 23: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

OutlineOutline

Motivation (“Send Aid” scenario)Motivation (“Send Aid” scenario) ObjectivesObjectives Path Planning:RRT Connect Path PlannerPath Planning:RRT Connect Path Planner DemoDemo Temporal Plan Network (TPN)Temporal Plan Network (TPN) Conversion from RRT to TPNConversion from RRT to TPN ConclusionsConclusions

Page 24: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

ConclusionsConclusions

RRT Connect Path PlannerRRT Connect Path Planner– Adapts well to problems in non-cluttered Adapts well to problems in non-cluttered

environmentsenvironments– Greedy heuristic enables rapid convergence Greedy heuristic enables rapid convergence

to solutionto solution– Max_iterations and extension distance epsilon Max_iterations and extension distance epsilon

RRT to TPN RRT to TPN – exploits the backtracking of the plannerexploits the backtracking of the planner– TPN size >= 2* size(RRT) = O(RRT)TPN size >= 2* size(RRT) = O(RRT)– Can express both RRTs and activities in TPNCan express both RRTs and activities in TPN

Page 25: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

Future WorkFuture Work

Current research enables multiple Current research enables multiple agent representation in TPNagent representation in TPN– Rewrite the scenario to include Rewrite the scenario to include

multiple vehiclesmultiple vehicles– Cooperative vehiclesCooperative vehicles

Associate a cost with each edge Associate a cost with each edge to find optimal planto find optimal plan

Page 26: Implementation of RRT based Path planner and conversion into Temporal Plan Network By: Aisha Walcott Final Project Presentation Dec. 10, 2001 16.412J.

RRT Connect Drawback RRT Connect Drawback DemoDemo