Skip to content
Snippets Groups Projects
Commit 6440480c authored by Joan Solà Ortega's avatar Joan Solà Ortega
Browse files

Update hello_wolf_autoconf.cpp

parent 0ca84b1f
No related branches found
No related tags found
2 merge requests!312Adress 244: Do not use default yaml params,!305WIP: Resolve "Do not use default YAML params"
...@@ -101,7 +101,7 @@ int main() ...@@ -101,7 +101,7 @@ int main()
using namespace wolf; using namespace wolf;
WOLF_TRACE("======== CONFIGURE PROBLEM =======") WOLF_TRACE("======== CONFIGURE PROBLEM =======");
// Config file to parse. Here is where all the problem is defined: // Config file to parse. Here is where all the problem is defined:
std::string file = std::string(_WOLF_ROOT_DIR) + "/hello_wolf/hello_wolf_config.yaml"; std::string file = std::string(_WOLF_ROOT_DIR) + "/hello_wolf/hello_wolf_config.yaml";
...@@ -110,6 +110,7 @@ int main() ...@@ -110,6 +110,7 @@ int main()
ParserYAML parser = ParserYAML(file); ParserYAML parser = ParserYAML(file);
parser.parse(); parser.parse();
ParamsServer server = ParamsServer(parser.getParams(), parser.sensorsSerialization(), parser.processorsSerialization()); ParamsServer server = ParamsServer(parser.getParams(), parser.sensorsSerialization(), parser.processorsSerialization());
server.print();
// Wolf problem: automatically build the left branch of the wolf tree from the contents of the params server: // Wolf problem: automatically build the left branch of the wolf tree from the contents of the params server:
ProblemPtr problem = Problem::autoSetup(server); ProblemPtr problem = Problem::autoSetup(server);
......
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