From f75652af3be34cbca2aa6340f267db342a12ce51 Mon Sep 17 00:00:00 2001 From: robotsfan Date: Fri, 24 May 2024 11:23:55 +0000 Subject: [PATCH] fix: change tab to space --- src/rl_sar/library/rl_sdk/rl_sdk.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/rl_sar/library/rl_sdk/rl_sdk.cpp b/src/rl_sar/library/rl_sdk/rl_sdk.cpp index cbda588..3e65870 100644 --- a/src/rl_sar/library/rl_sdk/rl_sdk.cpp +++ b/src/rl_sar/library/rl_sdk/rl_sdk.cpp @@ -260,16 +260,16 @@ std::vector ReadVectorFromYaml(const YAML::Node& node) void RL::ReadYaml(std::string robot_name) { - YAML::Node config; - try - { - config = YAML::LoadFile(CONFIG_PATH)[robot_name]; - } catch(YAML::BadFile &e) - { + YAML::Node config; + try + { + config = YAML::LoadFile(CONFIG_PATH)[robot_name]; + } catch(YAML::BadFile &e) + { - std::cout << "The file '" << CONFIG_PATH << "' does not exist" << std::endl; - return; - } + std::cout << "The file '" << CONFIG_PATH << "' does not exist" << std::endl; + return; + } this->params.model_name = config["model_name"].as(); this->params.num_observations = config["num_observations"].as();