Skip to content

Hybrid A*

Hybrid A* is a path planning algorithm which finds the optimal path from A to B. It is a modification of the algorithm A* that also uses the rover’s heading. Instead of considering 8 grid directions around the rover, instead one is able to define points in any direction. Additionally, one is able to apply cost to these directions so some are prioritized over others. An introduction to Hybrid A* can be found here. An overview of our A* can also be found here.

Screenshot from 2026-09-12 19-44-42

At each step, A* evaluates a current node by combining two values: g(n) and h(n).

  • g(n) - the actual cost to reach the current node n from the starting point
  • h(n) - a heuristic estimate of the cost from the current node n to the ending point

Each node is then given a value based on the following algorithm: f(n) = g(n) + h(n). When making a path A* considers 8 different directions which can be represented by the 8 directions on a compass. Instead of considering these directions, do research into points around the rover that it can follow.

In addition to adding the cost of going to that point with the current high cost in that area, we will also add a cost depending on how it will affect the rovers heading.

For example: Cost = C_distance + W_s(C_steering) + W_o(C_obstacle)