Public Member Functions | Public Attributes | Friends | List of all members
cost_map::Inflate::CellData Struct Reference

Public Member Functions

 CellData (double d, unsigned int x, unsigned int y, unsigned int sx, unsigned int sy)
 Constructor for CellData objects. More...
 

Public Attributes

double distance_
 
unsigned int src_x_
 
unsigned int src_y_
 
unsigned int x_
 
unsigned int y_
 

Friends

bool operator< (const CellData &a, const CellData &b)
 Provide an ordering between CellData objects in the priority queue. More...
 

Detailed Description

Definition at line 99 of file inflation.hpp.

Constructor & Destructor Documentation

cost_map::Inflate::CellData::CellData ( double  d,
unsigned int  x,
unsigned int  y,
unsigned int  sx,
unsigned int  sy 
)
inline

Constructor for CellData objects.

Parameters
dThe distance to the nearest obstacle, used for ordering in the priority queue
xThe x coordinate of the cell in the cost map
yThe y coordinate of the cell in the cost map
sxThe x coordinate of the closest obstacle cell in the costmap
syThe y coordinate of the closest obstacle cell in the costmap
Returns

Definition at line 109 of file inflation.hpp.

Friends And Related Function Documentation

bool operator< ( const CellData a,
const CellData b 
)
friend

Provide an ordering between CellData objects in the priority queue.

Returns
We want the lowest distance to have the highest priority... so this returns true if a has higher priority than b

Definition at line 117 of file inflation.hpp.

Member Data Documentation

double cost_map::Inflate::CellData::distance_

Definition at line 120 of file inflation.hpp.

unsigned int cost_map::Inflate::CellData::src_x_

Definition at line 122 of file inflation.hpp.

unsigned int cost_map::Inflate::CellData::src_y_

Definition at line 122 of file inflation.hpp.

unsigned int cost_map::Inflate::CellData::x_

Definition at line 121 of file inflation.hpp.

unsigned int cost_map::Inflate::CellData::y_

Definition at line 121 of file inflation.hpp.


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


cost_map_core
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:03:41