nus cs 5247 david hsu minkowski sum gokul varadhan

36
NUS CS 5247 David Hsu Minkowski Sum Minkowski Sum Gokul Varadhan Gokul Varadhan

Post on 21-Dec-2015

232 views

Category:

Documents


3 download

TRANSCRIPT

Page 1: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

NUS CS 5247 David Hsu

Minkowski SumMinkowski Sum

Gokul VaradhanGokul Varadhan

Page 2: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

2

Last Lecture Configuration space

workspace configuration space

Page 3: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

3

Problem – Configuration Space of aTranslating Robot Input:

Polygonal moving object translating in 2-D workspace Polygonal obstacles

Output: configuration space obstacles represented as polygons

Page 4: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

4

Configuration Space of aTranslating Robot

Workspace Configuration Space

xyRobot

Obstacle C-obstacle

Robot

C-obstacle is a polygon.

Page 5: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

5

Minkowski Sum

},|{ BbAabaBA

A B

Page 6: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

6

Minkowski Sum

},|{ BbAabaBA

Page 7: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

7

Minkowski Sum

Page 8: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

8

Minkowski Sum

},|{ BbAabaBA

Page 9: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

9

Configuration Space Obstacle

O -RObstacle

ORobot

R

C-obstacle

C-obstacle is O -RClassic result by Lozano-Perez and Wesley 1979

Page 10: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

10

Properties of Minkowski Sum Minkowski sum of boundary of P and boundary

of Q is a subset of boundary of

Minkowski of two convex sets is convex

PQ

Page 11: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

11

Minkowski sum of convex polygons The Minkowski sum of two convex polygons P

and Q of m and n vertices respectively

is a convex polygon P + Q of m + n vertices.

The vertices of P + Q are the “sums” of vertices of P and Q.

=

Page 12: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

12

Gauss Map Gauss map of a convex polygon

Edge point on the circle defined by the normal Vertex arc defined by its adjacent edges

Page 13: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

13

Gauss Map Property of Minkowski Sum p+q belongs to the boundary of Minkowski sum only if the Gauss map of p and q overlap.

Page 14: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

14

Computational efficiency Running time O(n+m) Space O(n+m)

Page 15: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

15

Minkowski Sum of Non-convex Polygons Decompose into convex polygons (e.g., triangles

or trapezoids), Compute the Minkowski sums, and Take the union

Complexity of Minkowski sum O(n2m2)

Page 16: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

16

Worst case example O(n2m2) complexity

2D exampleAgarwal et al. 02

Page 17: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

17

3D Minkowski Sum Convex case

O(nm) complexity Many methods known for computing Minkowski sum in this case

Convex hull method Compute sums of all pairs of vertices of P and Q Compute their convex hull O(mn log(mn)) complexity

More efficient methods are known [Guibas and Seidel 1987]

Page 18: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

18

3D Minkowski Sum Non-convex case

O(n3m3) complexity

Computationally challenging

Common approach resorts to convex decomposition

Page 19: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

19

3D Minkowski Sum Computation Two objects P and Q with m and n convex pieces

respectively Compute mn pairwise Minkowski sums between all pairs of convex

pieces Compute the union of the pairwise Minkowski sums

Main bottleneck Union computation mn is typically large (tens of thousands) Union of mn pairwise Minkowski sums has a complexity close to

O(m3n3)

No practical algorithms known for exact Minkowski sum computation

Page 20: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

20

Minkowski Sum Approximation We developed an accurate and efficient

approximate algorithm [Varadhan and Manocha 2004]

Provides certain “geometric” and “topological” guarantees on the approximation Approximation is “close” to the boundary of the

Minkowski sum It has the same number of connected components

and genus as the exact Minkowski sum

Page 21: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

21

Brake Hub(4,736 tris)

Union of1,777 primitives

Rod(24 tris)

Page 22: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

22

Union of4,446 primitives

Anvil

(144 tris)

Spoon(336 tris)

Page 23: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

23

Knife(516 tris)

Scissors(636 tris)

Union of63,790 primitives

Page 24: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

24

444 tris 1,134 tris

Page 25: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

25

Union of66,667 primitives

Page 26: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

26

Cup(1,000 tris)

Cup Offset

Gear2,382 tris)

Gear Offset

Offsetting

Page 27: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

27

Configuration Space Approximation- 3D Translation

ObstacleO

RobotR

O -R

C-obstacle

Page 28: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

28

Assembly

ObstacleRobot

Page 29: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

29

Assembly

Roadmap 16 secs

Path Search 0.22 secs

Start

Goal

Obstacle

Page 30: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

30

Assembly

Page 31: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

31

Path in Configuration Space

StartGoal

Path

Page 32: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

32

Other Applications

Minkowski sums and configuration spaces have also been used for

Morphing

Tolerance Analysis

Knee/Joint Modeling

Interference Detection

Penetration Depth

Packing

Page 33: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

33

Applications - Dynamic Simulation

Kim et al. 2002

• Interference Detection• Penetration Depth Computation

Page 34: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

34

Morphing

A B

Morph

tBAt )1(

Page 35: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

35

Applications - Packing

Page 36: NUS CS 5247 David Hsu Minkowski Sum Gokul Varadhan

36

Next lecture Configuration space of a polygonal robot

capable of translation and rotation