ValueTraits Struct Reference

ValueTraits Struct Reference#

Beluga ROS: beluga_ros::OccupancyGrid::ValueTraits Struct Reference
Beluga ROS
beluga_ros::OccupancyGrid::ValueTraits Struct Reference

Traits for occupancy grid value interpretation. More...

#include <occupancy_grid.hpp>

Static Public Member Functions

static bool is_free (std::int8_t value)
 Check if the given value corresponds to that of a free cell.
 
static bool is_unknown (std::int8_t value)
 Check if the given value corresponds to that of a cell of unknown occupancy.
 
static bool is_occupied (std::int8_t value)
 Check if the given value corresponds to that of an occupied cell.
 

Static Public 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.
 

Detailed Description

Traits for occupancy grid value interpretation.

Assumes a standard ROS trinary interpretation.


The documentation for this struct was generated from the following file: