path finding
play

Path finding Exercise 12-1 Visibility graph: Nodes are corner - PowerPoint PPT Presentation

Path finding Exercise 12-1 Visibility graph: Nodes are corner points of all obstacles, start and target An edge between a pair of nodes (a,b) exists if and only if a and b can see another, i.e. if the line [a,b] is not interrupted by


  1. Path finding Exercise 12-1

  2. Visibility graph: Nodes are corner points of all obstacles, start and target • An edge between a pair of nodes (a,b) exists if and only if a • and b can see another, i.e. if the line [a,b] is not interrupted by an obstacle. Edges of polygons are edges in the visibility graph, too. a) target

  3. Visibility graph: Edge costs correspond to the Euclidean distance • Shortest path search in the visibility graph (e.g. with Dijkstra) • delivers shortest path between start and target a) target

  4. For extended objects which are invariant to point reflection: Pick centroid of the object and expand all obstacles by the corresponding • Minkowski-sum Like that the path finding of the extended object can be reduced to the path finding • of a point: the shortest path of a circle through the obstacles is equivalent to the shortest path of the center of the circle through the expanded obstacles. Problem: Circles have infinite many angles which means that the visibility graph is • not computable precisely. Solution: Approximate the circle with a polygon which is invariant to point reflection • (e.g. hexagon, octagon) target b)

  5. Not computable, but obvious solution: target b)

  6. Annotation: The triangle is not invariant to point reflection- If approximated with a circle, there would be no path to the target. target c)

  7. Approach from robotics (motion planning) which may be too expensive for MMOs: Choose reference point in the polygon, e.g. a corner. • Calculate Minkowski difference of the polygon (relating to the reference • point) to every polygon (=Minkowski sum of the object point reflected by the reference point) Like that the polygon itself „shrinks“ to a point, obstacles „grow“ (see • also robotic work space-> configuration space (C-Space, e.g. all positions of a roboter in a room), C-obstacles, free space) Move point to the target through free space. • target c)

  8. Now the shortest path to the target is again the shortest path in the visibility graph. target c)

  9. Now the shortest path to the target is again the shortest path in the visibility graph. target c)

  10. Now the shortest path to the target is again the shortest path in the visibility graph. target c)

  11. target c) Path finding of such a triangle is thus not solvable with the rather coarse approximation of a circle. But it is possible using the Minkowski difference, which though depends on the shape and can be computationally intensive for a high variety of shapes in a game

  12. Addition: if another corner of the triangle is chosen as reference point, it looks like this: target c)

  13. Addition: if another corner of the triangle is chosen as reference point, it looks like this: target c)

  14. Addition: if another corner of the triangle is chosen as reference point, it looks like this: target c)

  15. Addition: Comparison: The orange path was the shortest path found previously. As we can see, it is the same, so the shortest path does not depend on the reference point chosen. target c)

  16. Tutorial Exercise Alpha Beta Pruning

  17. max min max min 7 4 2 4 6 5 9 2 6 1 4 2 1 2 7 3

  18. max min max min

  19. max min max β =7 min 7

  20. max min max min 4 7 4

  21. max min max min 4 7 4

  22. max 0 min α =4 max min 4 7 4

  23. max 0 min α =4 max min 4 7 4 2

  24. max min α =4 max β =2 min 4 7 4 2

  25. max min α =4 max β < α β =2 min 4 7 4 2

  26. max min max 4 β < α β =2 min 4 7 4 2

  27. max β =4 min max 4 min 4 7 4 2

  28. max β =4 min max 4 min 4 7 4 2 6

  29. max β =4 min max 4 β =6 min 4 7 4 2 6

  30. max β =4 min max 4 β =6 min 4 7 4 2 6 5

  31. max β =4 min α =5 max 4 min 4 5 7 4 2 6 5

  32. max β =4 min β < α α =5 max 4 min 4 5 7 4 2 6 5

  33. max α =4 4 min max 4 min 4 5 7 4 2 6 5

  34. max α =4 4 min max 4 β =6 min 4 5 7 4 2 6 5 6

  35. max α =4 4 min max 4 min 4 5 1 7 4 2 6 5 6 1

  36. max α =4 4 min α =1 max 4 min 4 5 1 7 4 2 6 5 6 1

  37. max α =4 4 min α =1 max 4 β =4 min 4 5 1 7 4 2 6 5 6 1 4

  38. max α =4 4 min max 4 2 min 4 5 1 2 7 4 2 6 5 6 1 4 2

  39. max α =4 β =2 4 min max 4 2 min 4 5 1 2 7 4 2 6 5 6 1 4 2

  40. max α =4 β < α β =2 4 min max 4 2 min 4 5 1 2 7 4 2 6 5 6 1 4 2

  41. max 4 4 min max 4 2 min 4 5 1 2 7 4 2 6 5 6 1 4 2

  42. Search strategy: Post-order (right partial tree first)

  43. max min max min 7 4 2 4 6 5 9 2 6 1 4 2 1 2 7 3

  44. max min max β =3 min 3

  45. max min α =3 max min 3 7 3

  46. max min α =3 max β =2 min 3 2 7 3

  47. max min α =3 max β < α β =2 min 3 2 7 3

  48. max β =3 min max 3 min 3 2 7 3

  49. max β =3 min max 3 β =2 min 3 2 2 7 3

  50. max β =3 min max 3 α =2 β =1 min 2 3 1 4 2 2 7 3

  51. max β =3 min max 3 α =2 β < α β =1 min 2 3 1 4 2 2 7 3

  52. max β =3 min max 3 2 min 2 3 1 4 2 2 7 3

  53. α =2 max min 2 max 3 2 min 2 3 1 4 2 2 7 3

  54. α =2 max min 2 max 3 2 β =2 min 2 3 2 1 4 2 2 7 3

  55. α =2 max min 2 max 3 2 α =2 min 2 2 3 9 2 1 4 2 2 7 3

  56. α =2 max min 2 max 3 2 α =2 β =5 min 2 2 3 5 9 2 1 4 2 2 7 3

  57. α =2 max min 2 max 3 2 α =2 min 5 2 2 3 6 5 9 2 1 4 2 2 7 3

  58. α =2 max min 2 max 5 3 2 min 5 2 2 3 6 5 9 2 1 4 2 2 7 3

  59. α =2 max β =5 min 2 max 5 3 2 min 5 2 2 3 6 5 9 2 1 4 2 2 7 3

  60. α =2 max β =5 min 2 max 5 3 2 β =4 min 5 2 2 3 4 6 5 9 2 1 4 2 2 7 3

  61. α =2 max β =5 min 2 α =2 max 5 3 2 min 2 5 2 2 3 2 4 6 5 9 2 1 4 2 2 7 3

  62. α =2 max β =5 min 2 α =2 max 5 3 2 β =4 min 2 5 2 2 3 4 2 4 6 5 9 2 1 4 2 2 7 3

  63. max 4 4 min 2 max 4 5 3 2 min 4 2 5 2 2 3 7 4 2 4 6 5 9 2 1 4 2 2 7 3

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend