#include "bitsim/bitsim_types.h"
#include "bitsim/planning/occupancy_grid.h"
#include <algorithm>
#include <functional>
#include <queue>
#include <unordered_map>
#include <vector>
Go to the source code of this file.
|
| template<typename Node, typename Neighbours, typename Cost, typename Heuristic> |
| SearchResult< Node > | bitsim::planning::a_star (const Node &start, const Node &goal, Neighbours neighbours, Cost cost, Heuristic heuristic, real_t weight=1.0) |
| | A* search from start to goal.
|
| SearchResult< GridCell > | bitsim::planning::a_star_grid (const OccupancyGrid &grid, const GridCell &start, const GridCell &goal, bool diagonal=true, real_t weight=1.0) |
| | A* on an occupancy grid, moving to the neighbours of a cell (see OccupancyGrid::neighbours) with the distance between cell centres as the cost and the straight-line distance to the goal as the heuristic, which never guesses too high.
|