Commit 3cd9c5c6 authored by oscar's avatar oscar

提交距离判断逻辑

parent d198b829
......@@ -587,7 +587,7 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
{
if (m_front_camera_len != 0)
{
if (x < m_front_camera_len && objMsg.type != 4 && objMsg.type != 5)
if ( x*x + y*y < m_front_camera_len* m_front_camera_len && objMsg.type != 4 && objMsg.type != 5)
continue;
}
}
......
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