Skip to content
Snippets Groups Projects
Commit 10e7d111 authored by Michael Jeronimo's avatar Michael Jeronimo Committed by Matt Hansen
Browse files

The map type should be optional and default to occupancy grid

parent c4082908
No related branches found
No related tags found
No related merge requests found
......@@ -84,8 +84,8 @@ void MapServer::getParameters()
try {
map_type_ = doc_["map_type"].as<std::string>();
} catch (YAML::Exception) {
std::string msg = "'" + yaml_filename_ + "' does not contain a map_type tag or it is invalid";
throw std::runtime_error(msg);
// Default to occupancy grid if not specified in the YAML file
map_type_ = "occupancy";
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment