mirror of https://github.com/fan-ziqi/rl_sar.git
fix: change tab to space
This commit is contained in:
parent
4370cbf392
commit
f75652af3b
|
@ -260,16 +260,16 @@ std::vector<T> ReadVectorFromYaml(const YAML::Node& node)
|
||||||
|
|
||||||
void RL::ReadYaml(std::string robot_name)
|
void RL::ReadYaml(std::string robot_name)
|
||||||
{
|
{
|
||||||
YAML::Node config;
|
YAML::Node config;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
config = YAML::LoadFile(CONFIG_PATH)[robot_name];
|
config = YAML::LoadFile(CONFIG_PATH)[robot_name];
|
||||||
} catch(YAML::BadFile &e)
|
} catch(YAML::BadFile &e)
|
||||||
{
|
{
|
||||||
|
|
||||||
std::cout << "The file '" << CONFIG_PATH << "' does not exist" << std::endl;
|
std::cout << "The file '" << CONFIG_PATH << "' does not exist" << std::endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this->params.model_name = config["model_name"].as<std::string>();
|
this->params.model_name = config["model_name"].as<std::string>();
|
||||||
this->params.num_observations = config["num_observations"].as<int>();
|
this->params.num_observations = config["num_observations"].as<int>();
|
||||||
|
|
Loading…
Reference in New Issue