Template Function voxblox::getGridIndexFromPoint(const Point&, const FloatingPoint)

Function Documentation

template <typename IndexType>
IndexType voxblox::getGridIndexFromPoint(const Point &point, const FloatingPoint grid_size_inv)

NOTE: Due the limited accuracy of the FloatingPoint type, this function doesn’t always compute the correct grid index for coordinates near the grid cell boundaries.

Use the safer getGridIndexFromOriginPoint if the origin point is available.