Commit 5efb7a2d authored by oscar's avatar oscar

提交更新

parent 244547f9
......@@ -175,15 +175,19 @@ void TrackingRos::Init(ros::NodeHandle& nh)
float threshold;
nh.param<float>("iou_threshold", threshold, 0.01);
SDK_LOG(SDK_INFO, "iou_threshold = %f", iou_threshold);
m_tracker.SetIouThreshold(threshold);
int max_coastcycles;
nh.param<int32_t>("max_coastcycles", max_coastcycles, 2);
SDK_LOG(SDK_INFO, "max_coastcycles = %d", max_coastcycles);
m_tracker.SetMaxCoastCycles(max_coastcycles);
int update_valid_count;
nh.param<int32_t>("update_valid_count", update_valid_count, 2);
SDK_LOG(SDK_INFO, "update_valid_count = %d", update_valid_count);
m_tracker.SetValidUpdateCount(update_valid_count);
float matrix_angle_r_value;
nh.param<float>("matrix_angle_r_value", matrix_angle_r_value, 0.1);
SDK_LOG(SDK_INFO, "matrix_angle_r_value = %f", matrix_angle_r_value);
std::vector<float> values;
values.push_back(matrix_angle_r_value);
m_tracker.SetValues(values);
......
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