Go to the documentation of this file.
8 #ifndef cb_global_planner_ASTARPLANNER_H_
9 #define cb_global_planner_ASTARPLANNER_H_
32 void setCostmap(
const unsigned char* char_cost_map);
34 void resize(
int nx,
int ny);
40 static constexpr
double SQRT2 = 1.414213562;
79 return c1->
f_ > c2->
f_;
84 int x_goal,
int y_goal,
double min_cell_cost,
static constexpr double SQRT2
double calculateHeuristicCost(int x, int y, int x_goal, int y_goal, double min_cell_cost)
bool operator()(const CellInfo *c1, const CellInfo *c2) const
void resize(int nx, int ny)
CellInfo(double x, double y, double g, double h)
void setCostmap(const unsigned char *char_cost_map)
AStarPlanner(int width, int height)
bool plan(std::vector< unsigned int > mx_start, std::vector< unsigned int > my_start, int mx_goal, int my_goal, std::vector< int > &plan_xs, std::vector< int > &plan_ys, bool best_heuristic=false)
double getCost(int x, int y)
void expandCell(CellInfo *c, int dx, int dy, double cost_factor, double **visited_map, int x_goal, int y_goal, double min_cell_cost, std::priority_queue< CellInfo *, std::vector< CellInfo * >, compareCellInfos > &Q)
const unsigned char * char_cost_map_