Template Function voxblox::getGridIndexFromPoint(const Point&, const FloatingPoint)¶
- Defined in File common.h
Function Documentation¶
-
template <typename IndexType>
IndexTypevoxblox
::
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.