9 - Global Path Planning Flashcards
Drawbacks of reinforcement learning
Time consuming
Trained model might end up with different routes
Path Planning
Task of finding a sequence of valid configurations that will drive the robot to the goal
Local Path Planning
partially known environment - take data from local sensors while moving
Global path planning
Environment is static and known to robot
Steps for djikstra algorithm
Assign an initial value to every node (infinite symbol often)
Repeat:
- Select an unvisited node with the smallest known distance as the current node
- Consider all its unvisited neighbours and update their distances (if applicable)
- Mark the current node as visited
Until the destination node has the smallest distance among all unvisited nodes
Advantage of djikstra algo
Guaranteed to find shortest pathD
Disadvantage of djikstra algo
Time consuming. Impractical for large graphs
A* Search
Use a heuristic function to guide the search
F(n) = g(n)+h(n) where g(n) is distance from source to n and h(n) is an estimate to the destination from n.
If h(n) = 0 then A* equals to Djikstra’s algo
h(n) must always ____ (under or over estimate) the cost to the goal
Always underestimate
A* algorithm steps
Assign an initial distance (g) to every node
Initialise open and close lists (open has start; close has none)
Repeat:
- From the open list, select a node with the smallest f value as the current node (f=g+h)
- Consider all unclosed neighbours and update their value (if smaller). If its unclosed neighbours are not in the open list, add them.
- Move current node to the close list
Until destination reached.
A* vs djikstra: Speed and memory
Generally faster and less memory