#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | nav_grid_pub_sub |
Functions | |
std::vector< unsigned char > | nav_grid_pub_sub::getOccupancyInput (bool trinary=false, bool use_unknown_value=false) |
Above 100 is occupied, -1 is sometimes unknown, and otherwise it is either scaled or freespace. | |
std::vector< unsigned char > | nav_grid_pub_sub::grayScaleInterpretation (const double free_threshold, const double occupied_threshold) |
Above occupied_threshold is occupied, below free_threshold is free, and the middle is in between. | |
std::vector< unsigned char > | nav_grid_pub_sub::pixelColoringInterpretation (const double free_threshold, const double occupied_threshold) |
Above occupied_threshold is occupied, below free_threshold is free, and the middle gray is unknown. | |
static std::vector< unsigned char > | nav_grid_pub_sub::RAW (0) |
Every value is untouched. | |
Variables | |
static std::vector< unsigned char > | nav_grid_pub_sub::NEGATE |
Every value is 255 - i value. | |
static std::vector< unsigned char > | nav_grid_pub_sub::OCC_GRID_PUBLISHING |
Scale [0, 255] down to [0, 100] (except for a few special values) | |
static std::vector< unsigned char > | nav_grid_pub_sub::SCALE_SAVE |
0 becomes 254 (white), 100 becomes 0 (black) and everything in between is gray | |
static std::vector< unsigned char > | nav_grid_pub_sub::TRINARY_SAVE |
0 becomes 254 (white), 100 becomes 0 (black) and everything else is 205 (gray) |