Go to the documentation of this file.
47 Expander(PotentialCalculator* p_calc,
int nx,
int ny) :
52 virtual bool calculatePotentials(
unsigned char* costs,
double start_x,
double start_y,
double end_x,
double end_y,
53 int cycles,
float* potential) = 0;
60 virtual void setSize(
int nx,
int ny) {
78 void clearEndpoint(
unsigned char* costs,
float* potential,
int gx,
int gy,
int s){
79 int startCell =
toIndex(gx, gy);
80 for(
int i=-s;i<=
s;i++){
81 for(
int j=-s;j<=
s;j++){
82 int n = startCell+i+
nx_*j;
93 inline int toIndex(
int x,
int y) {
void setFactor(float factor)
virtual bool calculatePotentials(unsigned char *costs, double start_x, double start_y, double end_x, double end_y, int cycles, float *potential)=0
PotentialCalculator * p_calc_
void setNeutralCost(unsigned char neutral_cost)
unsigned char lethal_cost_
void clearEndpoint(unsigned char *costs, float *potential, int gx, int gy, int s)
virtual float calculatePotential(float *potential, unsigned char cost, int n, float prev_potential=-1)
Expander(PotentialCalculator *p_calc, int nx, int ny)
unsigned char neutral_cost_
void setLethalCost(unsigned char lethal_cost)
int toIndex(int x, int y)
void setHasUnknown(bool unknown)
global_planner
Author(s): David Lu!!
autogenerated on Mon Mar 6 2023 03:50:40