bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitsim::planning Namespace Reference

Classes

struct  SearchResult
 What a search found. More...
class  BoxWorld
 A rectangular slice of the plane with axis-aligned box obstacles, a start and a goal. More...
struct  GridCell
 A cell of an OccupancyGrid: its column, along x, and row, along y. More...
class  OccupancyGrid
 A rectangle of the plane cut into square cells, each free or occupied. More...
class  ProbabilityGrid
 An occupancy map built from range sensors, each cell holding the probability that it is occupied. More...
class  RRT
 A rapidly exploring random tree in the plane. More...

Functions

SearchResult< GridCell > 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.
template<typename Node, typename Neighbours, typename Cost, typename Heuristic>
SearchResult< Node > 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.
bool line_of_sight (const OccupancyGrid &grid, const GridCell &a, const GridCell &b)
 Whether the straight segment between the centres of cells a and b stays clear: every cell the segment passes through is free, and it does not cut between two obstacles that meet at a corner. Used by theta_star_grid, and for drawing an any-angle path.
SearchResult< GridCell > bfs_grid (const OccupancyGrid &grid, const GridCell &start, const GridCell &goal, bool diagonal=true)
 Breadth-first search on an occupancy grid.
SearchResult< GridCell > theta_star_grid (const OccupancyGrid &grid, const GridCell &start, const GridCell &goal)
 Theta*: any-angle search on an occupancy grid.