#include <gradient_path.h>
Public Member Functions | |
bool | getPath (float *potential, double start_x, double start_y, double end_x, double end_y, std::vector< std::pair< float, float > > &path) |
GradientPath (PotentialCalculator *p_calc) | |
void | setSize (int xs, int ys) |
~GradientPath () | |
Private Member Functions | |
int | getNearestPoint (int stc, float dx, float dy) |
float | gradCell (float *potential, int n) |
Private Attributes | |
float * | gradx_ |
float * | grady_ |
float | pathStep_ |
Definition at line 46 of file gradient_path.h.
Definition at line 45 of file gradient_path.cpp.
Definition at line 50 of file gradient_path.cpp.
int global_planner::GradientPath::getNearestPoint | ( | int | stc, |
float | dx, | ||
float | dy | ||
) | [inline, private] |
Definition at line 65 of file gradient_path.h.
bool global_planner::GradientPath::getPath | ( | float * | potential, |
double | start_x, | ||
double | start_y, | ||
double | end_x, | ||
double | end_y, | ||
std::vector< std::pair< float, float > > & | path | ||
) | [virtual] |
Implements global_planner::Traceback.
Definition at line 68 of file gradient_path.cpp.
float global_planner::GradientPath::gradCell | ( | float * | potential, |
int | n | ||
) | [private] |
Definition at line 266 of file gradient_path.cpp.
void global_planner::GradientPath::setSize | ( | int | xs, |
int | ys | ||
) | [virtual] |
Reimplemented from global_planner::Traceback.
Definition at line 58 of file gradient_path.cpp.
float* global_planner::GradientPath::gradx_ [private] |
Definition at line 71 of file gradient_path.h.
float * global_planner::GradientPath::grady_ [private] |
gradient arrays, size of potential array
Definition at line 71 of file gradient_path.h.
float global_planner::GradientPath::pathStep_ [private] |
step size for following gradient
Definition at line 73 of file gradient_path.h.