Date post: | 14-Dec-2015 |
Category: |
Documents |
Upload: | kody-worthman |
View: | 214 times |
Download: | 0 times |
Fall 2005 3
Visibility Graph (Point Robot)
start
goal
Edges between all
pairs of visible vertices
Use graph algorithm to find a path from start to goal
Fall 2005 11
R(0,0)
–R(0,0)
PqyxRq
q
),(
onintersectiin point A
)0,0(, Ryqxq yx
)0,0(, Ryqxq yx
(x,y)
If intersect, (x,y) is in CPIf intersect, (x,y) is in CP
))0,0((,
,,
RPyx
yqxqqq
Pq
yxyx
q
Fall 2005 12
R(0,0)
–R(0,0)
))0,0((, RPyx
(x,y)
If (x,y) is in CP, R(x,y)&P intersectIf (x,y) is in CP, R(x,y)&P intersect
p
yy
xx
ryp
rxp
is,That
r
yyxx
yxyx
rprpyx
PppRrr
,,such that
, )0,0(,
Fall 2005 14
Example
v1,v4
v2
v3
w1,w5 w2
w3
w4
[i,j] = (1,1)
Add v1+w1
angle(v1v2) > angle(w1w2)
j2
Fall 2005 22
Time Complexity
It is O(n+m) if both polygons are convex.It is O(nm) if one of the polygons is convex and one is non-convex.It is O(n2m2) if both polygons are non-convex.
Fall 2005 23
Example 2
v4,v1
v2
v3
w5,w1
w2
w3
w4
[i,j] = (1,1)
Add v1+w1
angle(v1v2) < angle(w1w2)
i2
Fall 2005 33
Path Planning (Rotational Robot)
Each slice: R(0,0,i): obtain a roadmapProject all roadmap to get “intersection” – a pure rotation from i to j
Use a slight larger robot to ensure pure rotation won’t collide with obstacles
Fall 2005 34
Homework
P
R
[use the grid line to compute the result as accurate as possible]
1. Compute CP w.r.t. R2. Compute CP w.r.t. R’3. R and R’ are exactly the same
robot, differ only in reference point. Are CPs in 1 and 2 the same?
4. Do 1 and 2 obtain the same answer regarding to the intersection query? That is, the configuration shown left is reported as intersection in 1 & 2.
R’