/home/runner/work/beluga/beluga/beluga_ros/include/beluga_ros/occupancy_grid.hpp Source File#
Beluga ROS
|
occupancy_grid.hpp
Go to the documentation of this file.
Thin wrapper type for 2D nav_msgs/OccupancyGrid messages.
Definition: occupancy_grid.hpp:42
std::size_t size() const
Get the size of the occupancy grid (width() times height()).
Definition: occupancy_grid.hpp:76
std::size_t width() const
Get the width of the occupancy grid.
Definition: occupancy_grid.hpp:82
std::size_t height() const
Get the height of the occupancy grid.
Definition: occupancy_grid.hpp:85
static auto value_traits()
Get the traits for occupancy grid value interpretation.
Definition: occupancy_grid.hpp:91
const auto & data() const
Get a reference to the underlying data storeage (ie. a row-major array).
Definition: occupancy_grid.hpp:79
OccupancyGrid(nav_msgs::msg::OccupancyGrid::ConstSharedPtr grid)
Definition: occupancy_grid.hpp:69
const Sophus::SE2d & origin() const
Get the occupancy grid origin in the occupancy grid frame.
Definition: occupancy_grid.hpp:73
double resolution() const
Get the resolution of the occupancy grid discretization, in meters.
Definition: occupancy_grid.hpp:88
Traits for occupancy grid value interpretation.
Definition: occupancy_grid.hpp:48
static bool is_occupied(std::int8_t value)
Check if the given value corresponds to that of an occupied cell.
Definition: occupancy_grid.hpp:63
static constexpr std::int8_t kUnknownValue
Unknown value in the standard ROS trinary interpretation.
Definition: occupancy_grid.hpp:52
static bool is_unknown(std::int8_t value)
Check if the given value corresponds to that of a cell of unknown occupancy.
Definition: occupancy_grid.hpp:60
static constexpr std::int8_t kFreeValue
Free value in the standard ROS trinary interpretation.
Definition: occupancy_grid.hpp:50
static constexpr std::int8_t kOccupiedValue
Occupied value in the standard ROS trinary interpretation.
Definition: occupancy_grid.hpp:54
static bool is_free(std::int8_t value)
Check if the given value corresponds to that of a free cell.
Definition: occupancy_grid.hpp:57
Generated by