Skip to content
Snippets Groups Projects
Commit 91d9b72c authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

optional loading map from yamlfile

parent 98edebff
No related branches found
No related tags found
1 merge request!466devel->main
Pipeline #13307 canceled
......@@ -172,6 +172,11 @@ ProblemPtr Problem::autoSetup(ParamsServer &_server)
auto map = AutoConfFactoryMap::create(map_type, _server);
map->setProblem(problem);
problem->setMap(map);
// load map from file (optional)
if (_server.hasParam("map/load"))
{
problem->loadMap(_server.getParam<std::string>("map/load"));
}
// Tree manager
std::string tree_manager_type = _server.getParam<std::string>("problem/tree_manager/type");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment