Function navmap_ros::io::save_to_file
Defined in File navmap_io.hpp
Function Documentation
-
bool navmap_ros::io::save_to_file(const navmap::NavMap &map, const std::string &path, const SaveOptions &options = {}, std::error_code *ec = nullptr)
Save a
navmap::NavMapby converting it to a message and serializing to disk.Requires
navmap_coreheaders andnavmap_ros::to_msg.See also
- Parameters:
map – [in] Core map to save.
path – [in] Destination file path.
options – [in] Save options (currently unused, reserved).
ec – [out] Optional error code; if not null, it will be set on failure.
- Returns:
trueon success,falseotherwise.