Commit 04a20389 authored by oscar's avatar oscar

提交更新

parent 9dd3f08c
......@@ -530,12 +530,15 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
objMsg.x = objMsg.x + (objMsg.l / 2);
int duplicate = 0;
for (auto& obj : cloudPtr->array)
if (i == 0)
{
if (abs(obj.x - objMsg.x) < std::max(objMsg.l * 1.2, (double)2.0) && abs(obj.y - objMsg.y) < std::max(objMsg.w * 1.2, (double)2.0))
for (auto& obj : cloudPtr->array)
{
duplicate = 1;
break;
if (abs(obj.x - objMsg.x) < std::max(objMsg.l * 1.2, (double)2.0) && abs(obj.y - objMsg.y) < std::max(objMsg.w * 1.2, (double)2.0))
{
duplicate = 1;
break;
}
}
}
if (duplicate == 0)
......
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