Go to the source code of this file.
Namespaces | |
namespace | nav_grid_pub_sub |
Functions | |
void | nav_grid_pub_sub::applyInterpretation (nav_grid::NavGrid< unsigned char > &grid, const std::vector< unsigned char > &cost_interpretation_table) |
Apply a given interpretation to the provided nav grid. | |
unsigned char | nav_grid_pub_sub::interpretCost (unsigned char original_value, const std::vector< unsigned char > &cost_interpretation_table) |
return cost_interpretation_table[original_value] (or original_value if not a valid index) | |
template<typename NumericType > | |
unsigned char | nav_grid_pub_sub::interpretValue (const NumericType value, const NumericType min_value, const NumericType denominator, const NumericType unknown_value) |
Scale the given value to fit within [0, 100] (unless its ignore_value, then its -1) |