9 occupancyGrid(occupancyGrid), params(params)
16 return (occupancyGrid.grid > 0.F).cast<
bool>();
25 const auto isFree = [&](OccupancyGrid::CellType p) ->
float
26 {
return static_cast<float>(p < params.freespaceThreshold and p > 0.F); };
30 return occupancyGrid.grid.unaryViewExpr(isFree).cast<
bool>();
36 const auto isOccupied = [&](OccupancyGrid::CellType p) ->
float
37 {
return static_cast<float>(p > params.occupiedThreshold); };
39 return occupancyGrid.grid.unaryViewExpr(isOccupied).cast<
bool>();
BinaryArray freespace() const
BinaryArray knownCells() const
OccupancyGridHelper(const OccupancyGrid &occupancyGrid, const Params ¶ms=Params())
BinaryArray obstacles() const
detail::OccupancyGridHelperParams Params
Eigen::Array< bool, Eigen::Dynamic, Eigen::Dynamic > BinaryArray
This file offers overloads of toIce() and fromIce() functions for STL container types.