Commit 78d610fa authored by oscar's avatar oscar

提交读取文件

parent 8dae77d4
......@@ -34,7 +34,13 @@ TrackingRos::~TrackingRos()
void TrackingRos::Init(ros::NodeHandle& nh)
{
YAML::Node config = YAML::LoadFile("/home/oscar/ros/git/catkin_ws_xishan/src/jfx_tracking/config/7-1.yaml");
std::string folder,yaml;
nh.param<std::string>("project_path", folder, "");
nh.param<std::string>("yaml_config", yaml, "none");
std::string file = folder + yaml;
SDK_LOG(SDK_INFO, "load yaml file = %s",file.c_str());
YAML::Node config = YAML::LoadFile(file.c_str());
auto cfg = config["TRACKING"];
......
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