bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
grid_search.cpp File Reference
#include "bitsim/planning/grid_search.h"
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <queue>
#include <unordered_map>
#include <unordered_set>
Include dependency graph for grid_search.cpp:

Namespaces

namespace  bitsim
namespace  bitsim::planning

Functions

bool bitsim::planning::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 > bitsim::planning::bfs_grid (const OccupancyGrid &grid, const GridCell &start, const GridCell &goal, bool diagonal=true)
 Breadth-first search on an occupancy grid.
SearchResult< GridCell > bitsim::planning::theta_star_grid (const OccupancyGrid &grid, const GridCell &start, const GridCell &goal)
 Theta*: any-angle search on an occupancy grid.