Commit 10afaad8 authored by oscar's avatar oscar

修改读取config逻辑

parent 9a5c21b9
......@@ -227,10 +227,10 @@ void TrackingRos::Init(ros::NodeHandle& nh)
values.push_back(matrix_angle_r_value);
m_tracker.SetValues(values);
auto cfg = config["TRACKING"];
auto cfg = config;
m_trans = cfg["TRANS"].as<std::vector<std::vector<double>>>();
auto cfg2 = config["POINTPILLARS"];
auto cfg2 = config;
m_kitti2origin = cfg2["KITTI2ORIGIN"].as<std::vector<std::vector<double>>>();
SDK_LOG(SDK_INFO, "trans = [%s]", GetMatrixStr(m_trans, 4, 4).c_str());
......
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