Public Member Functions | Private Member Functions | Private Attributes | List of all members
global_planner::GradientPath Class Reference

#include <gradient_path.h>

Inheritance diagram for global_planner::GradientPath:
Inheritance graph

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 ()
- Public Member Functions inherited from global_planner::Traceback
int getIndex (int x, int y)
void setLethalCost (unsigned char lethal_cost)
 Traceback (PotentialCalculator *p_calc)

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_

Additional Inherited Members

- Protected Attributes inherited from global_planner::Traceback
unsigned char lethal_cost_
int xs_
int ys_

Detailed Description

Definition at line 46 of file gradient_path.h.

Constructor & Destructor Documentation

global_planner::GradientPath::GradientPath ( PotentialCalculator p_calc)

Definition at line 45 of file gradient_path.cpp.

global_planner::GradientPath::~GradientPath ( )

Definition at line 50 of file gradient_path.cpp.

Member Function Documentation

int global_planner::GradientPath::getNearestPoint ( int  stc,
float  dx,
float  dy 

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 

Implements global_planner::Traceback.

Definition at line 68 of file gradient_path.cpp.

float global_planner::GradientPath::gradCell ( float *  potential,
int  n 

Definition at line 266 of file gradient_path.cpp.

void global_planner::GradientPath::setSize ( int  xs,
int  ys 

Reimplemented from global_planner::Traceback.

Definition at line 58 of file gradient_path.cpp.

Member Data Documentation

float* global_planner::GradientPath::gradx_

Definition at line 71 of file gradient_path.h.

float * global_planner::GradientPath::grady_

gradient arrays, size of potential array

Definition at line 71 of file gradient_path.h.

float global_planner::GradientPath::pathStep_

step size for following gradient

Definition at line 73 of file gradient_path.h.

The documentation for this class was generated from the following files:

Author(s): David Lu!!
autogenerated on Sun Mar 3 2019 03:44:42