Function navmap_ros::to_msg(const navmap::NavMap&)

Function Documentation

navmap_ros_interfaces::msg::NavMap navmap_ros::to_msg(const navmap::NavMap &nm)

Convert a core navmap::NavMap into 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 nm is 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::NavMap containing geometry (vertices, triangles), surfaces metadata and user-defined layers.