/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:47
std::size_t size() const
Get the size of the occupancy grid (width() times height()).
Definition: occupancy_grid.hpp:81
std::size_t width() const
Get the width of the occupancy grid.
Definition: occupancy_grid.hpp:87
std::size_t height() const
Get the height of the occupancy grid.
Definition: occupancy_grid.hpp:90
static auto value_traits()
Get the traits for occupancy grid value interpretation.
Definition: occupancy_grid.hpp:96
const auto & data() const
Get a reference to the underlying data storeage (ie. a row-major array).
Definition: occupancy_grid.hpp:84
OccupancyGrid(beluga_ros::msg::OccupancyGridConstSharedPtr grid)
Definition: occupancy_grid.hpp:74
const Sophus::SE2d & origin() const
Get the occupancy grid origin in the occupancy grid frame.
Definition: occupancy_grid.hpp:78
double resolution() const
Get the resolution of the occupancy grid discretization, in meters.
Definition: occupancy_grid.hpp:93
Traits for occupancy grid value interpretation.
Definition: occupancy_grid.hpp:53
static bool is_occupied(std::int8_t value)
Check if the given value corresponds to that of an occupied cell.
Definition: occupancy_grid.hpp:68
static constexpr std::int8_t kUnknownValue
Unknown value in the standard ROS trinary interpretation.
Definition: occupancy_grid.hpp:57
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:65
static constexpr std::int8_t kFreeValue
Free value in the standard ROS trinary interpretation.
Definition: occupancy_grid.hpp:55
static constexpr std::int8_t kOccupiedValue
Occupied value in the standard ROS trinary interpretation.
Definition: occupancy_grid.hpp:59
static bool is_free(std::int8_t value)
Check if the given value corresponds to that of a free cell.
Definition: occupancy_grid.hpp:62
Generated by 1.9.1