From 9d6cc57ce59b5c6a376fdff15e2c69114142ec17 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu> Date: Fri, 2 Aug 2019 21:52:37 +0200 Subject: [PATCH] Add _WOLF_ROOT_DIR to ParserYAML( ) --- hello_wolf/hello_wolf_autoconf.cpp | 2 +- hello_wolf/hello_wolf_config.yaml | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/hello_wolf/hello_wolf_autoconf.cpp b/hello_wolf/hello_wolf_autoconf.cpp index 369dbe96c..3c89914f7 100644 --- a/hello_wolf/hello_wolf_autoconf.cpp +++ b/hello_wolf/hello_wolf_autoconf.cpp @@ -107,7 +107,7 @@ int main() std::string file = std::string(_WOLF_ROOT_DIR) + "/hello_wolf/hello_wolf_config.yaml"; // parse file into params server: each param will be retrievable from this params server: - ParserYAML parser = ParserYAML(file); + ParserYAML parser = ParserYAML(file, std::string(_WOLF_ROOT_DIR)); parser.parse(); ParamsServer server = ParamsServer(parser.getParams(), parser.sensorsSerialization(), parser.processorsSerialization()); diff --git a/hello_wolf/hello_wolf_config.yaml b/hello_wolf/hello_wolf_config.yaml index b2ea7b0cd..673313d13 100644 --- a/hello_wolf/hello_wolf_config.yaml +++ b/hello_wolf/hello_wolf_config.yaml @@ -15,9 +15,7 @@ config: name: "sen odom" extrinsic: pose: [0,0, 0] - #follow: "/Users/jsola/dev/wolf_lib/core/hello_wolf/sensor_odom_2D.yaml" - k_disp_to_disp: 0.1 - k_rot_to_rot: 0.1 + follow: "hello_wolf/sensor_odom_2D.yaml" - type: "RANGE BEARING" -- GitLab