a_star#

ripplemapper.contour.a_star(start: tuple, goal: tuple, grid: ndarray) list[source]#

A simple A* algorithm for pathfinding.

Parameters:
  • start (tuple) – Starting node coordinates.

  • goal (tuple) – Goal node coordinates.

  • grid (np.ndarray) – Grid representing the map.

Returns:

Path from start to goal.

Return type:

list