Function nav2_map_server::map_mode_from_string

Function Documentation

MapMode nav2_map_server::map_mode_from_string(std::string map_mode_name)

Convert the name of a map mode to a MapMode enum.

Parameters:

map_mode_name – Name of the map mode

Throws:

std::invalid_argument – if the name does not name a map mode

Returns:

map mode corresponding to the string