Function navmap_ros::to_msg(const navmap::NavMap&)
Defined in File conversions.hpp
Function Documentation
-
navmap_ros_interfaces::msg::NavMap navmap_ros::to_msg(const navmap::NavMap &nm)
Convert a core
navmap::NavMapinto its compact ROS transport message.Intended to be lossless with respect to the information represented in the message.
The ordering of vertices/triangles/layers in
nmis preserved in the resulting message.
Note
This function does not perform IO; it only builds the message in-memory.
- Parameters:
nm – [in] Core NavMap to be serialized into a ROS message.
- Returns:
A
navmap_ros_interfaces::msg::NavMapcontaining geometry (vertices, triangles), surfaces metadata and user-defined layers.