Struct OccupancyGrid::ValueTraits
Defined in File occupancy_grid.hpp
Nested Relationships
This struct is a nested type of Class OccupancyGrid.
Struct Documentation
-
struct ValueTraits
Traits for occupancy grid value interpretation.
Assumes a standard ROS trinary interpretation.
Public Static Functions
-
static inline bool is_free(std::int8_t value)
Check if the given
value
corresponds to that of a free cell.
-
static inline bool is_unknown(std::int8_t value)
Check if the given
value
corresponds to that of a cell of unknown occupancy.
-
static inline bool is_occupied(std::int8_t value)
Check if the given
value
corresponds to that of an occupied cell.
Public Static Attributes
-
static constexpr std::int8_t kFreeValue = 0
Free value in the standard ROS trinary interpretation.
-
static constexpr std::int8_t kUnknownValue = -1
Unknown value in the standard ROS trinary interpretation.
-
static constexpr std::int8_t kOccupiedValue = 100
Occupied value in the standard ROS trinary interpretation.
-
static inline bool is_free(std::int8_t value)