Commit a8b1f6d3 authored by oscar's avatar oscar

提交测试

parent 8d9c1d10
......@@ -103,14 +103,6 @@ Track3D::Track3D():BaseTrack(10, 7)
m_iou_threshold = 0.01;
std::vector<point2d> tests;
tests.push_back(point2d(1, 1));
tests.push_back(point2d(2, 2));
tests.push_back(point2d(3, 3));
tests.push_back(point2d(4, 4));
tests.push_back(point2d(5,5));
double angle = correct_angle(tests);
SDK_LOG(SDK_INFO, "test correct_angle = %f",angle);
}
void Track3D::Init(const std::vector<float>& data)
{
......
......@@ -46,3 +46,5 @@ public:
std::vector<point2d> m_points;//保存最近的5个移动的点位
};
double correct_angle(std::vector<point2d>& points);
......@@ -211,6 +211,15 @@ void TrackingRos::Init(ros::NodeHandle& nh)
memcpy(m, f, sizeof(float) * 4);
SDK_LOG(SDK_INFO, "data = %f,%f,%f,%f", m[0], m[1], m[2], m[3]);
std::vector<point2d> tests;
tests.push_back(point2d(1, 1));
tests.push_back(point2d(2, 2));
tests.push_back(point2d(3, 3));
tests.push_back(point2d(4, 4));
tests.push_back(point2d(5, 5));
double angle = correct_angle(tests);
SDK_LOG(SDK_INFO, "test correct_angle = %f", angle);
}
void TrackingRos::TrackingCallBackFunc(const jfx_common_msgs::det_tracking_arrayConstPtr& msg)//接受ros发过来的消息
......
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