#include <potential_calculator.h>
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. | |
Protected Member Functions | |
int | toIndex (int x, int y) |
Protected Attributes | |
int | ns_ |
int | nx_ |
int | ny_ |
Definition at line 42 of file potential_calculator.h.
global_planner::PotentialCalculator::PotentialCalculator | ( | int | nx, |
int | ny | ||
) | [inline] |
Definition at line 44 of file potential_calculator.h.
virtual float global_planner::PotentialCalculator::calculatePotential | ( | float * | potential, |
unsigned char | cost, | ||
int | n, | ||
float | prev_potential = -1 |
||
) | [inline, virtual] |
Reimplemented in global_planner::QuadraticCalculator.
Definition at line 48 of file potential_calculator.h.
virtual void global_planner::PotentialCalculator::setSize | ( | int | nx, |
int | ny | ||
) | [inline, virtual] |
Sets or resets the size of the map.
nx | The x size of the map |
ny | The y size of the map sets 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 | ||
) | [inline, protected] |
Definition at line 71 of file potential_calculator.h.
int global_planner::PotentialCalculator::ns_ [protected] |
size of grid, in pixels
Definition at line 75 of file potential_calculator.h.
int global_planner::PotentialCalculator::nx_ [protected] |
Definition at line 75 of file potential_calculator.h.
int global_planner::PotentialCalculator::ny_ [protected] |
Definition at line 75 of file potential_calculator.h.