Docsity

Dynamic Pathfinding - Autonomous Robots - Lecture Slides, Slides of Robotics and Autonomous Systems

Partial preview of the text

Download Dynamic Pathfinding - Autonomous Robots - Lecture Slides and more Slides Robotics and Autonomous Systems in PDF only on Docsity!

D* Lite and Dynamic

pathfinding

Traditional Pathfinding Algorithms

• DFS

• BFS

  • Dykstra’s
  • A*
  • Dykstra’s and A* will find an optimal path
  • If structure of the search space changes, the path needs to be recomputed from scratch
  • In real time applications this can be a problem with having to traverse deformable terrain
  • Also can be problematic if the structure of the search space is not known

Enter Dynamic Pathfinding (cont.)

  • Dynamic pathfinding algorithms will hold on to their search data.
  • If connections between nodes are lost or created, data is modified and only effected nodes are recalculated
  • No need to start from scratch

A* Refresher

Let’s review quickly how A* works.

Node

  • g(x) is the cost so far from the start node to the current node
  • h(x) is the heuristic being used to estimate distance to the goal
  • Children[] is a list of children nodes or nodes connected to the current node

Open List

  • List of nodes that need to be examined
  • Priority Queue sorted by f(x)
  • f(x) = g(x) + h(x)

Algorithm

Openlist.Clear(); ClosedList.Clear(); currentNode = nil; startNode.g(x) = 0; Openlist.Push(startNode); While currentNode != goalNode currentNode = OpenList.Pop(); for each s in currentNode.Children[] s.g(x) = currentNode.g(x) + c(currentNode, s); OpenList.Push(s); end for each ClosedList.Push(currentNode); End while

Now on to the Juicy stuff

RHS value

  • The answer lies in the introduction of a new value into the mix
  • This value is known as the Right Hand Side (rhs) value.
  • This value is equal to the cost to the parent of a node plus the cost to travel to that node
  • By comparing this value to the cost to the node we can detect inconsistencies

RHS Value (cont.)

  • g(x) = A+B
  • rhs(x) = g(x’) + c(x’,x) = A+B
  • Under normal circumstances g(x)==rhs(x)
  • This is known as locally consistent

Inconsistency

  • The idea of inconsistency contains within it a lot of information both explicit and implicit that will be exploited in our search algorithms
  • Explicit data is used by the algorithm to update nodes. The implicit data will be used by the implementer to manage open lists.
  • Inconsistency falls into two categories: Underconsistency and Overconsisteny

Under Consistent

  • g(x) < rhs(x) is called underconsistency
  • When a node is found to be underconsistent that means that the path to the that node was made to be more expensive.
  • In a video game this would correspond to a wall or an obstruction was created
  • Nodes found to be underconsistent will need to be reset and paths completely recalculated

Lifelong Planning A* (LPA*)

  • This will be the first algorithm we explore as it is the foundation of D* Lite
  • The idea is that given a goal node you can find a path by backtracking to the start node by minimizing the rhs value.
  • Because of this we do not need to manage a Closed List (theoretically)

Data Structures

  • Graph
  • Node
  • OpenList