Determining the heuristic value by calculating a 2D path from each grid cell of the map to the goal and using the path length as expected distance. More...
#include <path_cost_heuristic.h>
Public Member Functions | |
bool | calculateDistances (const State &from, const State &to) |
Calculates for each grid cell of the map a 2D path to the cell (to.x, to.y). For forward planning 'to' is supposed to be the goal state, for backward planning 'to' is supposed to be the start state. More... | |
double | getHeuristicValue (const State &from, const State &to, const State &start, const State &goal) const override |
bool | loadParams (const vigir_generic_params::ParameterSet ¶ms=vigir_generic_params::ParameterSet()) override |
PathCostHeuristic () | |
void | updateMap (vigir_gridmap_2d::GridMap2DPtr map) |
~PathCostHeuristic () | |
Protected Member Functions | |
void | resetGrid () |
Protected Attributes | |
double | ivAngleBinSize |
double | ivCellSize |
double | ivDiffAngleCost |
int | ivGoalX |
int | ivGoalY |
boost::shared_ptr< SBPL2DGridSearch > | ivGridSearchPtr |
double | ivInflationRadius |
vigir_gridmap_2d::GridMap2DPtr | ivMapPtr |
double | ivMaxStepWidth |
int | ivNumAngleBins |
unsigned char ** | ivpGrid |
double | ivStepCost |
Static Protected Attributes | |
static const int | cvObstacleThreshold = 200 |
Determining the heuristic value by calculating a 2D path from each grid cell of the map to the goal and using the path length as expected distance.
The heuristic value consists of the following factors:
Definition at line 57 of file path_cost_heuristic.h.
vigir_footstep_planning::PathCostHeuristic::PathCostHeuristic | ( | ) |
Definition at line 9 of file path_cost_heuristic.cpp.
vigir_footstep_planning::PathCostHeuristic::~PathCostHeuristic | ( | ) |
Definition at line 17 of file path_cost_heuristic.cpp.
bool vigir_footstep_planning::PathCostHeuristic::calculateDistances | ( | const State & | from, |
const State & | to | ||
) |
Calculates for each grid cell of the map a 2D path to the cell (to.x, to.y). For forward planning 'to' is supposed to be the goal state, for backward planning 'to' is supposed to be the start state.
Definition at line 83 of file path_cost_heuristic.cpp.
|
override |
Definition at line 40 of file path_cost_heuristic.cpp.
|
override |
TODO ivInflationRadius
Definition at line 23 of file path_cost_heuristic.cpp.
|
protected |
Definition at line 146 of file path_cost_heuristic.cpp.
void vigir_footstep_planning::PathCostHeuristic::updateMap | ( | vigir_gridmap_2d::GridMap2DPtr | map | ) |
Definition at line 111 of file path_cost_heuristic.cpp.
|
staticprotected |
Definition at line 84 of file path_cost_heuristic.h.
|
protected |
Definition at line 90 of file path_cost_heuristic.h.
|
protected |
Definition at line 88 of file path_cost_heuristic.h.
|
protected |
Definition at line 93 of file path_cost_heuristic.h.
|
protected |
Definition at line 97 of file path_cost_heuristic.h.
|
protected |
Definition at line 98 of file path_cost_heuristic.h.
|
protected |
Definition at line 101 of file path_cost_heuristic.h.
|
protected |
Definition at line 95 of file path_cost_heuristic.h.
|
protected |
Definition at line 100 of file path_cost_heuristic.h.
|
protected |
Definition at line 94 of file path_cost_heuristic.h.
|
protected |
Definition at line 89 of file path_cost_heuristic.h.
|
protected |
Definition at line 86 of file path_cost_heuristic.h.
|
protected |
Definition at line 92 of file path_cost_heuristic.h.