bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
a_star_search.h File Reference
#include "bitsim/bitsim_types.h"
#include "bitsim/planning/occupancy_grid.h"
#include <algorithm>
#include <functional>
#include <queue>
#include <unordered_map>
#include <vector>
Include dependency graph for a_star_search.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  bitsim::planning::SearchResult< Node >
 What a search found. More...

Namespaces

namespace  bitsim
namespace  bitsim::planning

Functions

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.