File conversions.hpp
↰ Parent directory (include/navmap_ros)
Conversions between the core NavMap representation and ROS messages.
Detailed Description
This header provides:
Lossless conversion between the core type
navmap::NavMapand the compact transport messagenavmap_ros_interfaces::msg::NavMap.Bidirectional conversion between
nav_msgs::msg::OccupancyGridandnavmap::NavMapusing a regular triangular mesh (shared vertices, two triangles per grid cell).
Occupancy mapping
When building a NavMap from an OccupancyGrid, a per-NavCel (triangle) layer named "occupancy" (uint8) is added with the following value mapping:
-1(unknown) →2550..100(percent) →0..254(linear scaling)
The reverse conversion reuses that layer when present.
Includes
Eigen/Corememorynav_msgs/msg/occupancy_grid.hppnavmap_core/NavMap.hppnavmap_ros_interfaces/msg/nav_map.hppnavmap_ros_interfaces/msg/nav_map_layer.hpppcl/point_cloud.hpcl/point_types.hsensor_msgs/msg/point_cloud2.hppstringvector