Function nav2_map_server::expand_user_home_dir_if_needed

Function Documentation

std::string nav2_map_server::expand_user_home_dir_if_needed(std::string yaml_filename, std::string home_dir)

Expand ~/ to home user dir.

Parameters:
  • yaml_filename – Name of input YAML file.

  • home_dir – Expanded ~/home dir or empty string if HOME not set

Returns:

Expanded string or input string if ~/ not expanded