E190Q Lecture14 MotionPlanning PDF
E190Q Lecture14 MotionPlanning PDF
Localization Cognition
2 !
Introduction to Motion Planning
1. MP Overview
2. The Configuration Space
3. General Approach to MP
4. Metrics
5. PRMs
6. Single Query PRMs
3
MP Overview
5
MP Overview
§ Example:
Goal
Configuration
Trajectory
Start
Configuration
6
MP Overview
§ Inputs
§ Geometry of robots and obstacles
§ Kinematics/Dynamics of robots
§ Start and Goal configurations
§ Outputs
§ Continuous sequence of configurations connecting
the start and goal configurations
7
MP Overview
§ Extensions
§ Moving obstacles § Uncertainty in model,
§ Multiple robots control and sensing
§ Movable objects § Exploiting task mechanics
§ Assembly planning (under-actuated systems)
§ Goal is to acquire § Physical models and
information by sensing deformable objects
§ Nonholonomic constraints § Integration with higher-
level planning
§ Dynamic constraints
§ Stability constraints
8
Introduction to Motion Planning
1. MP Overview
2. The Configuration Space
3. General Approach to MP
4. Metrics
5. PRMs
6. Single Query PRMs
9
The Configuration Space
(Latombe 1991)
10
The Configuration Space
11
The Configuration Space
12
The Configuration Space
13
The Configuration Space
¬F
X
Workspace Configuration Space
14
The Configuration Space
¬F
F
X
Workspace Configuration Space
15
Introduction to Motion Planning
1. MP Overview
2. The Configuration Space
3. General Approach to MP
4. Metrics
5. PRMs
6. Single Query PRMs
16
General Approach to MP
1. Define C
2. Discretize C
3. Search C
17
1. Define C
19
2. Discretize C
20
2. Discretize C
21
2. Discretize C
§ Roadmap
§ Represent the connectivity of the free space by a
network of 1-D curves
22
2. Discretize C
23
2. Search C
C D
A B
B E
D E G
F A C F G
24
Introduction to Motion Planning
1. MP Overview
2. The Configuration Space
3. General Approach to MP
4. Metrics
25
Metrics
26
Metrics
1. Speed or Complexity
§ Often, planners are compared based on the
running time of an algorithm.
§ Must specify the hardware when reporting, (e.g. processor
type, …)
§ Example:
§ Planner A outperformed Planner B in that it took half the
time to solve the same planning problem.
27
Metrics
1. Speed or Complexity
§ Planners are also compared based on the
algorithm’s run time complexity
§ i.e. the number of steps or operations an algorithm must
take as a function of the size of the input.
28
Metrics
1. Speed or Complexity
§ Example: For M particles and N sensors, calculate
the weights assuming expected measurements are
known
29 § In this example there are on the order of MxN operations, i.e O(MN)
Metrics
2. Completeness
§ A complete algorithm is one that is guaranteed to
find a solution if one exists, or determine if no
solution exists.
30
Metrics
2. Completeness
§ A resolution complete planner discretizes the
space and returns a path whenever one exists in the
discretized representation.
31 No Solution Solution!
Metrics
2. Completeness
§ A probabilistically complete planner returns a
path with high probability if a path exists. It may not
terminate if no path exists.
32
Metrics
3. Optimality
§ Resolution of Discretization can lead to sub-optimal
solutions
33
Metrics
3. Optimality
§ Some algorithms will only guarantee sub-optimal
solutions (e.g. Greedy Search).
34 Sub-Optimal R. Optimal
Metrics
4. Feasibility of Solutions
§ Not all planners take into account the exact model
of the robot or environment.
§ E.g. Non-differential drive robot
35 Infeasible Feasible
Metrics
36
Motion Planning:
Searching the Configuration Space
37
Introduction to Motion Planning
1. MP Overview
2. The Configuration Space
3. General Approach to MP
4. Metrics
5. PRMs
6. Single Query PRMs
38
Probabilistic Road Maps
§ Definition:
§ A probabilistic road map is a discrete
representation of a continuous configuration space
generated by randomly sampling the free
configurations of the C-space and connecting
those points into a graph.
39
Probabilistic Road Maps
40
Probabilistic Road Maps
§ Trade-off
§ PRMs often sacrifice completeness for speed
41
Probabilistic Road Maps
1. Multi-Query:
§ Generate a single roadmap of F which can be used many
times.
2. Single-Query:
§ Use a new roadmap to characterize the subspace of F
which is relevant to the search problem.
43
Introduction to Motion Planning
1. MP Overview
2. The Configuration Space
3. General Approach to MP
4. Metrics
5. PRMs
6. Single Query PRMs
44
Motion Planning:
Probabilistic Road Maps
45
Motion Planning:
Probabilistic Road Maps
2. Bi-Directional:
§ Grow two trees, one from the start configuration and one
from the goal configuration, until the two trees meet.
§ Can’t consider time in the configuration space
46
Single Query PRMs: Outline
1. Introduction
2. Algorithm Overview
3. Sampling strategies
47
MP Overview
§ Example:
Goal
Configuration
Trajectory
Start
Configuration
48
Motion Planning
49
Motion Planning
50
Motion Planning
51
Motion Planning
52
Motion Planning
53
Motion Planning
54
Probabilistic Road Maps:
Learning Phase
§ Nomenclature
R=( N, E ) RoadMap
N Set of Nodes
E Set of edges
c Configuration
e edge
55
Motion Planning:
Probabilistic Road Maps
§ Algorithm
1. Add start configuration cstart to R( N, E )
2. Loop
3. Randomly Select New Node c to expand
4. Randomly Generate new Node c’ from c
5. If edge e from c to c’ is collision-free
6. Add (c’, e) to R
7. If c’ belongs to endgame region, return path
8. Return if stopping criteria is met
56
Single Query PRMs: Outline
1. Introduction
2. Algorithm Overview
3. Sampling strategies
§ Node Selection (step 3)
§ Node Generation (step 4)
§ Endgame Region (step 7)
57
Motion Planning:
PRM Node Selection
58
Motion Planning:
PRM Node Selection
§ Cont’
59
Motion Planning:
PRM Node Selection
§ Example:
§ Presented is a 2DOF configuration space where
the initial node in the roadmap is located in the
upper right corner.
§ After X iterations, the roadmap produced from an
unweighted expansion has limited coverage.
60 Unweighted Weighted
Motion Planning:
PRM Node Selection Technique 1
61
Motion Planning:
PRM Node Selection Technique 2
62
Single Query PRMs: Outline
1. Introduction
2. Algorithm Overview
3. Sampling strategies
§ Node Selection (step 3)
§ Node Generation (step 4)
§ Endgame Region (step 7)
63
Motion Planning:
PRM Milestone Generation
§ Algorithm:
1. Randomly select controls u and Δt
2. Use known dynamics/kinematics equation f of robot to
generate new configuration
c’ = f (c, u, Δt)
3. If path from c to c’ is collision-free, then add c’ to R
64
Motion Planning:
PRM Milestone Generation
c’
1. Introduction
2. Algorithm Overview
3. Sampling strategies
§ Node Selection (step 3)
§ Node Generation (step 4)
§ Endgame Region (step 7)
67
Motion Planning:
PRM Endgame Region
68
Motion Planning:
PRM Endgame Region
69
Motion Planning:
PRM Endgame Region
70
Motion Planning:
PRM Endgame Region
71
Motion Planning:
PRM Endgame Region
cgoal
c’ C’’
72