Commit 40a407f4 authored by oscar's avatar oscar

修改编译错误

parent e824fc6f
......@@ -183,7 +183,8 @@ void TrackingRos::Init(ros::NodeHandle& nh)
private_nh.param<std::string>("unittest_yaml", config_yaml, "");
private_nh.param<std::string>("yaml_config", yaml_config, "");
m_config = YAML::LoadFile(config_yaml);
config = YAML::LoadFile(yaml_config.c_str())
config = YAML::LoadFile(yaml_config.c_str());
SDK_LOG(SDK_INFO, "load yaml file = %s", yaml_config.c_str());
}
......@@ -191,7 +192,6 @@ void TrackingRos::Init(ros::NodeHandle& nh)
//nh.param<std::string>("project_path", folder, "/home/nvidia/catkin_ws/src/jfxrosperceiver");
//nh.param<std::string>("yaml_config", yaml, "/jfx_tracking/config/7-1.yaml");
//std::string file = folder + yaml;
SDK_LOG(SDK_INFO, "load yaml file = %s", yaml_config.c_str());
int gpu = 0;
gpu = m_config["kf_gpu"].as<int32_t>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment