Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics...

20
Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)
  • date post

    21-Dec-2015
  • Category

    Documents

  • view

    219
  • download

    3

Transcript of Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics...

Page 1: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Spring 2007

Motion Planning in Virtual Environments

Dan Halperin Yesha Sivan

TA: Alon Shalita

Basics of Motion Planning (D.H.)

Page 2: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Motion planning:the basic problem

Let B be a system (the robot) with k degrees of freedom moving in a known environment cluttered with obstacles. Given free start and goal placements for B decide whether there is a collision free motion for B from start to goal and if so plan such a motion.

Page 3: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Configuration spaceof a robot system with k degrees of freedom

the space of parametric representation of all possible robot configurations

C-obstacles: the expanded obstacles the robot -> a point k dimensional space point in configuration space: free,

forbidden, semi-free path -> curve

[Lozano-Peréz ’79]

Page 4: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Point robot

www.seas.upenn.edu/~jwk/motionPlanning

Page 5: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Trapezoidal decomposition

c11

c1

c2

c4

c3

c6

c5c8

c7

c10

c9

c12

c13

c14

c15

www.seas.upenn.edu/~jwk/motionPlanning

Page 6: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Connectivity graph

c1 c10

c2

c3

c4 c5

c6

c7

c8

c9

c11

c12

c13

c14

c15

c11

c1

c2

c4

c3

c6

c5c8

c7

c10

c9

c12

c13

c14

c15

www.seas.upenn.edu/~jwk/motionPlanning

Page 7: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Two major planning frameworks

Cell decomposition Road map

Motion planning methods differ along additional parameters

Page 8: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Hardness The problem is hard when k is part of the

input [Reif 79], [Hopcroft et al. 84], … [Reif 79]: planning a free path for a robot

made of an arbitrary number of polyhedral bodies connected together at some joint vertices, among a finite set of polyhedral obstacles, between any two given configurations, is a PSPACE-hard problem

Translating rectangles, planar linkages

Page 9: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

A complete solution

roadmap [Canny 87]:a singly exponential solution, nk(log n)dO(k^2) expected time

Page 10: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

What’s behind the maze solver that we saw last week:

translational motion planning for a polygon among polygos using exact Minkowski sums

Page 11: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Given two sets A and B in the plane, their Minkowski sum, denoted A B, is:

A B = {a + b | a A, b B}

Planar Minkowski sums

=

Page 12: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

We are given two polygons P and Q with m and n vertices respectively. If both polygons are convex, the complexity of their sum is m + n, and we can compute it in (m + n) time using a very simple procedure.

Convex-convex

Page 13: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

If only one of the polygons is convex, the complexity of their sum is (mn).

If both polygons are non-convex, the complexity of their sum is (m2n2).

When at least one is non-convex

Page 14: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

The prevailing method for computing the sum of two non-convex polygons: Decompose P and Q into convex sub- polygons, compute the pair-wise sums of the sub-polygons and obtain the union of these sums.

The decomposition method

P

QP1

P2

Q1

Q2P Q

Page 15: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

The maze solver that we saw last week uses CGAL’s Minkowski sum package

Page 16: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

What is the number of DoF’s?

a polygon robot translating in the plane

a polygon robot translating and rotating

a spherical robot moving in space a spatial robot translating and

rotating a snake robot in the plane with 3 links

Page 17: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

How to cope with many degrees of freedom and more complicated robots?

prevalent methods: sampling-based planners

We start with the archetype: probabilistic roadmap (PRM)

Page 18: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Probabilistic roadmapsProbabilistic roadmapsfree space

qqbb

qqgg

milestone

[[Kavraki, Svetska, Latombe,OvermarsKavraki, Svetska, Latombe,Overmars, 95], 95]

Page 19: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

Key issues

Collision checking Node sampling Finding nearby nodes Node connection

Page 20: Spring 2007 Motion Planning in Virtual Environments Dan Halperin Yesha Sivan TA: Alon Shalita Basics of Motion Planning (D.H.)

THE END