Function which can compute costs for the inflation layer. More...
#include <inflation.hpp>
Public Member Functions | |
virtual unsigned char | operator() (const float &distance) const |
Given a distance, compute a cost. | |
ROSInflationComputer (const float &inscribed_radius, const float &weight) | |
virtual | ~ROSInflationComputer () |
Private Attributes | |
float | inscribed_radius_ |
float | weight_ |
Function which can compute costs for the inflation layer.
This class provides a default inflation function which works like the ROS inflation layer. Inherit from this to generate your own inflation functions.
Definition at line 55 of file inflation.hpp.
cost_map::ROSInflationComputer::ROSInflationComputer | ( | const float & | inscribed_radius, |
const float & | weight | ||
) |
Definition at line 153 of file inflation.cpp.
virtual cost_map::ROSInflationComputer::~ROSInflationComputer | ( | ) | [inline, virtual] |
Definition at line 59 of file inflation.hpp.
unsigned char cost_map::ROSInflationComputer::operator() | ( | const float & | distance | ) | const [virtual] |
Given a distance, compute a cost.
distance | The metric distance from an obstacle (distance = cell_distance*resolution) |
Implements cost_map::InflationComputer.
Definition at line 161 of file inflation.cpp.
float cost_map::ROSInflationComputer::inscribed_radius_ [private] |
Definition at line 68 of file inflation.hpp.
float cost_map::ROSInflationComputer::weight_ [private] |
Definition at line 68 of file inflation.hpp.