Public Member Functions | Private Member Functions | Private Attributes
global_planner::DijkstraExpansion Class Reference

#include <dijkstra.h>

Inheritance diagram for global_planner::DijkstraExpansion:
Inheritance graph
[legend]

List of all members.

Public Member Functions

bool calculatePotentials (unsigned char *costs, double start_x, double start_y, double end_x, double end_y, int cycles, float *potential)
 DijkstraExpansion (PotentialCalculator *p_calc, int nx, int ny)
void setNeutralCost (unsigned char neutral_cost)
void setPreciseStart (bool precise)
void setSize (int nx, int ny)
 Sets or resets the size of the map.

Private Member Functions

float getCost (unsigned char *costs, int n)
void updateCell (unsigned char *costs, float *potential, int n)
 Updates the cell at index n.

Private Attributes

int * buffer1_
int * buffer2_
int * buffer3_
int * currentBuffer_
int currentEnd_
int * nextBuffer_
int nextEnd_
int * overBuffer_
int overEnd_
bool * pending_
bool precise_
float priorityIncrement_
float threshold_

Detailed Description

Definition at line 56 of file dijkstra.h.


Constructor & Destructor Documentation

Definition at line 42 of file dijkstra.cpp.


Member Function Documentation

bool global_planner::DijkstraExpansion::calculatePotentials ( unsigned char *  costs,
double  start_x,
double  start_y,
double  end_x,
double  end_y,
int  cycles,
float *  potential 
) [virtual]

Implements global_planner::Expander.

Definition at line 72 of file dijkstra.cpp.

float global_planner::DijkstraExpansion::getCost ( unsigned char *  costs,
int  n 
) [inline, private]

updates the cell at index n

Definition at line 85 of file dijkstra.h.

void global_planner::DijkstraExpansion::setNeutralCost ( unsigned char  neutral_cost) [inline]

Reimplemented from global_planner::Expander.

Definition at line 69 of file dijkstra.h.

void global_planner::DijkstraExpansion::setPreciseStart ( bool  precise) [inline]

Definition at line 74 of file dijkstra.h.

void global_planner::DijkstraExpansion::setSize ( int  nx,
int  ny 
) [virtual]

Sets or resets the size of the map.

Parameters:
nxThe x size of the map
nyThe y size of the map sets or resets the size of the map

Reimplemented from global_planner::Expander.

Definition at line 55 of file dijkstra.cpp.

void global_planner::DijkstraExpansion::updateCell ( unsigned char *  costs,
float *  potential,
int  n 
) [inline, private]

Updates the cell at index n.

Parameters:
costsThe costmap
potentialThe potential array in which we are calculating
nThe index to update

Definition at line 184 of file dijkstra.cpp.


Member Data Documentation

block priority buffers

Definition at line 97 of file dijkstra.h.

Definition at line 97 of file dijkstra.h.

storage buffers for priority blocks

Definition at line 97 of file dijkstra.h.

Definition at line 98 of file dijkstra.h.

Definition at line 99 of file dijkstra.h.

Definition at line 98 of file dijkstra.h.

Definition at line 99 of file dijkstra.h.

priority buffer block ptrs

Definition at line 98 of file dijkstra.h.

end points of arrays

Definition at line 99 of file dijkstra.h.

pending_ cells during propagation

Definition at line 100 of file dijkstra.h.

Definition at line 101 of file dijkstra.h.

priority threshold increment

Definition at line 105 of file dijkstra.h.

block priority thresholds current threshold

Definition at line 104 of file dijkstra.h.


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


global_planner
Author(s): David Lu!!
autogenerated on Thu Aug 27 2015 14:07:53