chapter 5: path planning hadi moradi. motivation need to choose a path for the end effector that...
Post on 21-Dec-2015
219 views
TRANSCRIPT
![Page 1: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/1.jpg)
Chapter 5: Path Planning
Hadi Moradi
![Page 2: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/2.jpg)
Motivation
• Need to choose a path for the end effector that avoids collisions and singularities
• Collisions are easy to define in the workspace, but need to be mapped into the configuration space for convenience
![Page 3: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/3.jpg)
Workspace v. configuration space
• Workspace: volume swept out by the end effector (in inertial frame)
• Configuration: location of all points on a robotic manipulator
• Configuration space:
![Page 4: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/4.jpg)
Obstacles
• Discrete obstacles are denoted Oi (in the workspace)
• Denote the robot as A(q) at configuration q• The configuration space obstacle, QO, is defined as:
• The free configuration space is the space of all collision-free configurations:
![Page 5: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/5.jpg)
Motion Planning for a Point RobotMotion Planning for a Point Robot
free space
s
g
free path
![Page 6: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/6.jpg)
ProblemProblem
semi-free path
![Page 7: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/7.jpg)
Types of Path ConstraintsTypes of Path Constraints
Local constraints: lie in free space
Differential constraints: have bounded curvature
Global constraints: have minimal length
![Page 8: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/8.jpg)
Motion-Planning FrameworkMotion-Planning Framework
Continuous representation
Discretization
Graph searching(blind, best-first, A*)
![Page 9: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/9.jpg)
Example: Visibility Graph (A Roadmap Method)Example: Visibility Graph (A Roadmap Method)
Visibility graphIntroduced in the Shakey project at SRI in the late 60s. Can produce shortest paths in 2-D configuration spaces g
s
![Page 10: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/10.jpg)
Example: Voronoi Diagram (A Roadmap Method)Example: Voronoi Diagram (A Roadmap Method)
Voronoi diagram Introduced by Computational Geometry researchers. Generate paths that maximizes clearance.
O(n log n) timeO(n) space
![Page 11: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/11.jpg)
Cell-Decomposition MethodsCell-Decomposition Methods
Two classes of methods: Exact cell decomposition Approximate cell decomposition
F is represented by a collection of non-overlapping cells whose union is contained in FExamples: quadtree, octree, 2n-tree
![Page 12: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/12.jpg)
Approximate Cell Decomposition: Quad Tree
![Page 13: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/13.jpg)
Octree Decomposition (3D environment)Octree Decomposition (3D environment)
![Page 14: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/14.jpg)
Potential Field MethodsPotential Field Methods
Goal
Robot
Goal
Robot
Approach initially proposed for real-time collision avoidance [Khatib, 86]. Hundreds of papers published on it.
![Page 15: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/15.jpg)
Attractive and Repulsive fieldsAttractive and Repulsive fields
![Page 16: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/16.jpg)
Potential Fields
![Page 17: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/17.jpg)
Local-Minimum IssueLocal-Minimum Issue
Perform best-first search (possibility of combining with approximate cell decomposition) Alternate descents and random walks Use local-minimum-free potential (navigation function)
![Page 18: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/18.jpg)
Ex: 2D Cartesian manipulator
• The configuration space is R2
• Consider only one object in the workspace– End effector and obstacle are convex polygons
• What is the configuration space obstacle?
![Page 19: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/19.jpg)
Ex: 2D Cartesian manipulator
• The nice thing about this example is that the workspace and the configuration space are identical
![Page 20: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/20.jpg)
Ex: planar two-link manipulator
• What is the configuration space obstacle for a two-link manipulator
![Page 21: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/21.jpg)
MotivationMotivation
• Geometric complexity• Space dimensionality
![Page 22: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/22.jpg)
Path planning overview
• Want to find a path from an initial position to a final position
![Page 23: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/23.jpg)
Potential fields
• To develop the mapping, we incrementally explore Qfree• Consider the manipulator (statically) as a point in the
configuration space• The manipulator is subject to a potential field
– Attractive in the case of the goal configuration
– Repulsive in the case of an obstacle
qUqUqU repatt
![Page 24: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/24.jpg)
Gradient descent
• In order to find minima of U, take the negative gradient:
qUqUqUq repatt
![Page 25: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/25.jpg)
The attractive field
• We define a potential field that attracts each of the n DH coordinate frames from the initial position to the goal position
![Page 26: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/26.jpg)
The attractive field
• Simple potential field, conic well potential
![Page 27: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/27.jpg)
The attractive field
• Instead we use a continually differentiable function: parabolic well potential – Field grows quadratically with the distance from the goal
configuration
2
, 2
1fiiiiatt qoqoqU
![Page 28: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/28.jpg)
Hybrid attractive field
• Combine the conic well potential and parabolic well potential fields– If the ith frame is close to the workspace goal, use the parabolic well
– If the ith frame is far from the workspace goal, use the conic well
• The distance d defines the distance from the goal that causes a transition from a conic to parabolic potential
• Since this is continuous everywhere, the workspace force is defined everywhere
dqoqodqoqod
dqoqoqoqoqU
fiiifiii
fiifiii
iatt
for2
1
for2
1
2
2
,
![Page 29: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/29.jpg)
Hybrid attractive field
• Taking the gradient gives the workspace attractive force
dqoqoqoqo
qoqod
dqoqoqoqo
qUqF
fiifii
fiii
fiifiii
iattiatt
for
for
,,
![Page 30: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/30.jpg)
Ex: planar two link manipulator
• For the 2-link arm shown below, assume that both links have length 1
1
1o ,
0
2 ,
1
0o ,
0
1
2/
2/
0
02211 fsfsfs qqoqqoqq
![Page 31: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/31.jpg)
The repulsive field
• Prevent collisions by creating a repulsive force in the workspace– Again, create forces that act on the origins of the n DH coordinate
frames
• These forces should:– Repel the robot from obstacles
– Do nothing of the robot is far away from obstacles
![Page 32: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/32.jpg)
The repulsive field
• Therefore, the workspace repulsive force is:
• To evaluate this, consider the distance function (oi(q)) as (x) where x is a three dimensional vector:
qUqF irepirep ,,
![Page 33: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/33.jpg)
The repulsive field
• So we can write this force as:
0
020,
for0
for111
qo
qoqoqoqoqF
i
ii
iii
irep
![Page 34: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/34.jpg)
Ex: planar two link manipulator
• Consider a convex obstacle close to o2
– Obstacle is outside the distance of influence for o1
– Again, the lengths are both 1
– Let b be the point on the obstacle closest to o2
• b = [2 0.5]T
• (o2(qs)) = 0.5
– Let 0 = 1 (no influence on o1)
– The initial repulsive force on o2 is:
![Page 35: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/35.jpg)
Other considerations
1. what happens if either there are multiple objects, or an object is not convex?
![Page 36: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/36.jpg)
Other considerations
2. what if the obstacle is closest to another part of a link (i.e. not the origin of the DH frame)?
![Page 37: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/37.jpg)
The relation between workspace forces and joint torques
FJ Tv
![Page 38: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/38.jpg)
Ex: two-link planar manipulator
• Consider the previous examples with an obstacle exerting a repulsive force on o2
• Find the attractive and repulsive forces on o1 and o2
Initial and goal configurations
Obstacle location
![Page 39: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/39.jpg)
Ex: two-link planar manipulator
• To determine the joint torques, take the transpose of the Jacobians at the initial configuration
![Page 40: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/40.jpg)
Composing workspace forces
• The total joint torques acting on a manipulator is the sum of the torques from all attractive and repulsive potentials:
i
irepT
oi
iattT
o qFqJqFqJqii ,,
![Page 41: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/41.jpg)
Ex: two-link planar manipulator
• Consider again the two-link manipulator with a goal position and an obstacle near o2
• The total joint torque, due to these two potential fields is:
Initial and goal configurations Obstacle location
![Page 42: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/42.jpg)
Gradient descent Path Planning Algorithm
1. First, determine your initial configuration
2. Second, given a desired point in the workspace, calculate the final configuration using the inverse kinematics– Use this to create an attractive potential field
3. Locate obstacles in the workspace– Create a repulsive potential field
4. Sum the joint torques in the configuration space
5. Use gradient descent to reach your target configuration
![Page 43: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/43.jpg)
Local minima
• In the absence of obstacles, the gradient descent will always converge to the global minimum (qf)
• With obstacles, by proper choice of i, this will always converge to some minima
![Page 44: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/44.jpg)
Local minima
• Instead we modify the gradient descent algorithm to add a random excitation in case we are stuck in a local minima
• We are stuck in a local minima if successive iterations result in minimal changes in the configuration
• If so, perform a random walk to get out
• The random walk is defined by adding a uniformly distributed variable to each joint parameter
2 goto .4
to walkrandom
if .3
,...,, return
else
if 2.
,0 1.
1
1
10
1
0
q
qqq
i
q
qqq
qqi
i
mii
i
i
iiii
fi
s
![Page 45: Chapter 5: Path Planning Hadi Moradi. Motivation Need to choose a path for the end effector that avoids collisions and singularities Collisions are easy](https://reader035.vdocuments.net/reader035/viewer/2022062516/56649d625503460f94a44c40/html5/thumbnails/45.jpg)
Next class…
• Applications to numerically solving for the inverse kinematics• Probabilistic methods