Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
global_planner::PotentialCalculator Class Reference

#include <potential_calculator.h>

Inheritance diagram for global_planner::PotentialCalculator:
Inheritance graph

Public Member Functions

virtual float calculatePotential (float *potential, unsigned char cost, int n, float prev_potential=-1)
 PotentialCalculator (int nx, int ny)
virtual void setSize (int nx, int ny)
 Sets or resets the size of the map. More...

Protected Member Functions

int toIndex (int x, int y)

Protected Attributes

int ns_
int nx_
int ny_

Detailed Description

Definition at line 42 of file potential_calculator.h.

Constructor & Destructor Documentation

global_planner::PotentialCalculator::PotentialCalculator ( int  nx,
int  ny 

Definition at line 44 of file potential_calculator.h.

Member Function Documentation

virtual float global_planner::PotentialCalculator::calculatePotential ( float *  potential,
unsigned char  cost,
int  n,
float  prev_potential = -1 

Reimplemented in global_planner::QuadraticCalculator.

Definition at line 48 of file potential_calculator.h.

virtual void global_planner::PotentialCalculator::setSize ( int  nx,
int  ny 

Sets or resets the size of the map.

nxThe x size of the map
nyThe y size of the mapsets or resets the size of the map

Definition at line 64 of file potential_calculator.h.

int global_planner::PotentialCalculator::toIndex ( int  x,
int  y 

Definition at line 71 of file potential_calculator.h.

Member Data Documentation

int global_planner::PotentialCalculator::ns_

size of grid, in pixels

Definition at line 75 of file potential_calculator.h.

int global_planner::PotentialCalculator::nx_

Definition at line 75 of file potential_calculator.h.

int global_planner::PotentialCalculator::ny_

Definition at line 75 of file potential_calculator.h.

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

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