Commit a924c89e authored by oscar's avatar oscar

更新

parent 5bbae29a
......@@ -414,7 +414,7 @@ void TrackingRos::TrackingCameraCallBackFunc(const jfx_common_msgs::InferResesCo
int duplicate = 0;
for (auto& obj : cloudPtr->array)
{
if (abs(obj.x - objMsg.x) < std::max(objMsg.l * 1.2, 2.0f) && abs(obj.y - objMsg.y) < std::max(objMsg.w * 1.2, 2.0f))
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;
......
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