Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
global_planner::Expander Class Referenceabstract

#include <expander.h>

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

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 ~Expander ()
 

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 81 of file expander.h.

Constructor & Destructor Documentation

◆ Expander()

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

Definition at line 119 of file expander.h.

◆ ~Expander()

virtual global_planner::Expander::~Expander ( )
inlinevirtual

Definition at line 123 of file expander.h.

Member Function Documentation

◆ calculatePotentials()

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

◆ clearEndpoint()

void global_planner::Expander::clearEndpoint ( unsigned char *  costs,
float *  potential,
int  gx,
int  gy,
int  s 
)
inline

Definition at line 150 of file expander.h.

◆ setFactor()

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

Definition at line 143 of file expander.h.

◆ setHasUnknown()

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

Definition at line 146 of file expander.h.

◆ setLethalCost()

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

Definition at line 137 of file expander.h.

◆ setNeutralCost()

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

Definition at line 140 of file expander.h.

◆ toIndex()

int global_planner::Expander::toIndex ( int  x,
int  y 
)
inlineprotected

Definition at line 165 of file expander.h.

Member Data Documentation

◆ cells_visited_

int global_planner::Expander::cells_visited_
protected

Definition at line 172 of file expander.h.

◆ factor_

float global_planner::Expander::factor_
protected

Definition at line 173 of file expander.h.

◆ lethal_cost_

unsigned char global_planner::Expander::lethal_cost_
protected

Definition at line 171 of file expander.h.

◆ neutral_cost_

unsigned char global_planner::Expander::neutral_cost_
protected

Definition at line 171 of file expander.h.

◆ ns_

int global_planner::Expander::ns_
protected

size of grid, in pixels

Definition at line 169 of file expander.h.

◆ nx_

int global_planner::Expander::nx_
protected

Definition at line 169 of file expander.h.

◆ ny_

int global_planner::Expander::ny_
protected

Definition at line 169 of file expander.h.

◆ p_calc_

PotentialCalculator* global_planner::Expander::p_calc_
protected

Definition at line 174 of file expander.h.

◆ unknown_

bool global_planner::Expander::unknown_
protected

Definition at line 170 of file expander.h.


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


global_planner
Author(s): David Lu!!
autogenerated on Mon Mar 6 2023 03:50:40