15 #ifndef BELUGA_TEST_STATIC_OCCUPANCY_GRID_HPP
16 #define BELUGA_TEST_STATIC_OCCUPANCY_GRID_HPP
27 template <std::
size_t Rows, std::
size_t Cols>
31 [[nodiscard]]
bool is_free(
bool value)
const {
return !value; }
32 [[nodiscard]]
bool is_unknown(
bool)
const {
return false; }
33 [[nodiscard]]
bool is_occupied(
bool value)
const {
return value; }
37 std::array<bool, Rows * Cols> array,
45 [[nodiscard]]
const auto&
data()
const {
return grid_; }
46 [[nodiscard]] std::size_t
size()
const {
return grid_.size(); }
48 [[nodiscard]] std::size_t
width()
const {
return Cols; }
49 [[nodiscard]] std::size_t
height()
const {
return Rows; }
55 std::array<bool, Rows * Cols>
grid_;