Public Member Functions | Protected Member Functions | Protected Attributes
global_planner::Expander Class Reference

#include <expander.h>

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

List of all members.

Public Member Functions

virtual bool calculatePotentials (unsigned char *costs, double start_x, double start_y, double end_x, double end_y, int cycles, float *potential)=0
void clearEndpoint (unsigned char *costs, float *potential, int gx, int gy, int s)
 Expander (PotentialCalculator *p_calc, int nx, int ny)
void setFactor (float factor)
void setHasUnknown (bool unknown)
void setLethalCost (unsigned char lethal_cost)
void setNeutralCost (unsigned char neutral_cost)
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 cells_visited_
float factor_
unsigned char lethal_cost_
unsigned char neutral_cost_
int ns_
int nx_
int ny_
PotentialCalculatorp_calc_
bool unknown_

Detailed Description

Definition at line 45 of file expander.h.


Constructor & Destructor Documentation

global_planner::Expander::Expander ( PotentialCalculator p_calc,
int  nx,
int  ny 
) [inline]

Definition at line 47 of file expander.h.


Member Function Documentation

virtual bool global_planner::Expander::calculatePotentials ( unsigned char *  costs,
double  start_x,
double  start_y,
double  end_x,
double  end_y,
int  cycles,
float *  potential 
) [pure virtual]
void global_planner::Expander::clearEndpoint ( unsigned char *  costs,
float *  potential,
int  gx,
int  gy,
int  s 
) [inline]

Definition at line 77 of file expander.h.

void global_planner::Expander::setFactor ( float  factor) [inline]

Definition at line 70 of file expander.h.

void global_planner::Expander::setHasUnknown ( bool  unknown) [inline]

Definition at line 73 of file expander.h.

void global_planner::Expander::setLethalCost ( unsigned char  lethal_cost) [inline]

Definition at line 64 of file expander.h.

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

Reimplemented in global_planner::DijkstraExpansion.

Definition at line 67 of file expander.h.

virtual void global_planner::Expander::setSize ( int  nx,
int  ny 
) [inline, 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 in global_planner::DijkstraExpansion.

Definition at line 59 of file expander.h.

int global_planner::Expander::toIndex ( int  x,
int  y 
) [inline, protected]

Definition at line 92 of file expander.h.


Member Data Documentation

Definition at line 99 of file expander.h.

Definition at line 100 of file expander.h.

unsigned char global_planner::Expander::lethal_cost_ [protected]

Definition at line 98 of file expander.h.

unsigned char global_planner::Expander::neutral_cost_ [protected]

Definition at line 98 of file expander.h.

size of grid, in pixels

Definition at line 96 of file expander.h.

Definition at line 96 of file expander.h.

Definition at line 96 of file expander.h.

Definition at line 101 of file expander.h.

Definition at line 97 of file expander.h.


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


global_planner
Author(s): David Lu!!
autogenerated on Sun Mar 3 2019 03:46:53