Function which can compute costs for the inflation layer. More...
#include <inflation.hpp>
Public Member Functions | |
InflationComputer () | |
virtual unsigned char | operator() (const float &distance) const =0 |
Given a distance, compute a cost. | |
virtual | ~InflationComputer () |
Function which can compute costs for the inflation layer.
Inherit from this to generate your own inflation functions.
Definition at line 35 of file inflation.hpp.
cost_map::InflationComputer::InflationComputer | ( | ) | [inline] |
Definition at line 37 of file inflation.hpp.
virtual cost_map::InflationComputer::~InflationComputer | ( | ) | [inline, virtual] |
Definition at line 38 of file inflation.hpp.
virtual unsigned char cost_map::InflationComputer::operator() | ( | const float & | distance | ) | const [pure virtual] |
Given a distance, compute a cost.
distance | The distance from an obstacle in cells |
Implemented in cost_map::ROSInflationComputer.