Function navmap_ros::io::load_from_file

Function Documentation

bool navmap_ros::io::load_from_file(const std::string &path, navmap::NavMap &out_map, std::error_code *ec = nullptr)

Load a navmap::NavMap by deserializing a message and converting to core.

Requires navmap_core headers and navmap_ros::from_msg.

Parameters:
  • path[in] Source file path.

  • out_map[out] Output core map.

  • ec[out] Optional error code; if not null, it will be set on failure.

Returns:

true on success, false otherwise.