14 namespace signed_distance_field {
24 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
100 return static_cast<size_t>(std::max(0.0, std::min(std::round(val), max)));
size_t_3d(size_t x, size_t y, size_t z)
size_t_3d gridsize_
3D size of the grid
Position3 nodePosition(const size_t_3d &index) const noexcept
size_t linearSize() const noexcept
size_t linearIndex(const size_t_3d &index) const noexcept
static size_t getNearestPositiveInteger(double val, double max) noexcept
double resolution_
Grid resolution.
Gridmap3dLookup()=default
Eigen::Vector3d Position3
Gridmap3dLookup(const size_t_3d &gridsize, const Position3 &gridOrigin, double resolution)
Position3 gridMaxIndexAsDouble_
Maximum index per dimension stored as double.
size_t_3d nearestNode(const Position3 &position) const noexcept
Position3 gridOrigin_
Origin position of the grid.