Commit f3b4f99d authored by oscar's avatar oscar

提交gpu参数

parent 78d610fa
......@@ -40,6 +40,11 @@ void TrackingRos::Init(ros::NodeHandle& nh)
std::string file = folder + yaml;
SDK_LOG(SDK_INFO, "load yaml file = %s",file.c_str());
int gpu = 0;
nh.param<int32_t>("kf_gpu", gpu, 0);
m_tracker->SetGPU(gpu);
YAML::Node config = YAML::LoadFile(file.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