Classes | Public Member Functions | Private Member Functions | Private Attributes
cost_map::Inflate Class Reference

#include <inflation.hpp>

List of all members.

Classes

struct  CellData

Public Member Functions

 Inflate ()
void operator() (const std::string layer_source, const std::string layer_destination, const float &inflation_radius, const InflationComputer &inflation_computer, CostMap &cost_map)
 Inflate...

Private Member Functions

void computeCaches (const float &resolution, const InflationComputer &compute_cost)
unsigned char costLookup (int mx, int my, int src_x, int src_y)
 Lookup pre-computed costs.
double distanceLookup (int mx, int my, int src_x, int src_y)
 Lookup pre-computed distances.
void enqueue (const cost_map::Matrix &data_source, cost_map::Matrix &data_destination, unsigned int mx, unsigned int my, unsigned int src_x, unsigned int src_y)
 Given an index of a cell in the costmap, place it into a priority queue for obstacle inflation.

Private Attributes

cost_map::Matrix cached_costs_
Eigen::MatrixXf cached_distances_
unsigned int cell_inflation_radius_
std::priority_queue< CellDatainflation_queue_
Eigen::Matrix< bool,
Eigen::Dynamic, Eigen::Dynamic > 
seen_

Detailed Description

Definition at line 75 of file inflation.hpp.


Constructor & Destructor Documentation

Definition at line 77 of file inflation.hpp.


Member Function Documentation

void cost_map::Inflate::computeCaches ( const float &  resolution,
const InflationComputer compute_cost 
) [private]

Definition at line 131 of file inflation.cpp.

unsigned char cost_map::Inflate::costLookup ( int  mx,
int  my,
int  src_x,
int  src_y 
) [private]

Lookup pre-computed costs.

Parameters:
mxThe x coordinate of the current cell
myThe y coordinate of the current cell
src_xThe x coordinate of the source cell
src_yThe y coordinate of the source cell
Returns:

Definition at line 124 of file inflation.cpp.

double cost_map::Inflate::distanceLookup ( int  mx,
int  my,
int  src_x,
int  src_y 
) [private]

Lookup pre-computed distances.

Parameters:
mxThe x coordinate of the current cell
myThe y coordinate of the current cell
src_xThe x coordinate of the source cell
src_yThe y coordinate of the source cell
Returns:

Definition at line 117 of file inflation.cpp.

void cost_map::Inflate::enqueue ( const cost_map::Matrix data_source,
cost_map::Matrix data_destination,
unsigned int  mx,
unsigned int  my,
unsigned int  src_x,
unsigned int  src_y 
) [private]

Given an index of a cell in the costmap, place it into a priority queue for obstacle inflation.

Parameters:
data_destinationthe costs (will be read and superimposed on this)
mxThe x coordinate of the cell (can be computed from the index, but saves time to store it)
myThe y coordinate of the cell (can be computed from the index, but saves time to store it)
src_xThe x index of the obstacle point inflation started at
src_yThe y index of the obstacle point inflation started at

Definition at line 84 of file inflation.cpp.

void cost_map::Inflate::operator() ( const std::string  layer_source,
const std::string  layer_destination,
const float &  inflation_radius,
const InflationComputer inflation_computer,
CostMap cost_map 
)

Inflate...

Parameters:
layer_source
layer_destination
inflation_radius
inscribed_radius
cost_map
Exceptions:
std::out_of_rangeif no map layer with name `layer` is present.

Definition at line 21 of file inflation.cpp.


Member Data Documentation

Definition at line 162 of file inflation.hpp.

Eigen::MatrixXf cost_map::Inflate::cached_distances_ [private]

Definition at line 161 of file inflation.hpp.

Definition at line 164 of file inflation.hpp.

std::priority_queue<CellData> cost_map::Inflate::inflation_queue_ [private]

Definition at line 163 of file inflation.hpp.

Eigen::Matrix<bool, Eigen::Dynamic, Eigen::Dynamic> cost_map::Inflate::seen_ [private]

Definition at line 160 of file inflation.hpp.


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


cost_map_core
Author(s): Daniel Stonier
autogenerated on Thu Jun 6 2019 20:27:46