We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03ff732 commit afb4c7dCopy full SHA for afb4c7d
perception/multi_object_tracker/src/multi_object_tracker_core.cpp
@@ -505,7 +505,10 @@ void MultiObjectTracker::sanitizeTracker(
505
}
506
} else { // If neither is UNKNOWN, delete the one with lower IOU.
507
if (min_iou < iou) {
508
- should_delete_tracker2 = true;
+ /* erase only when prioritized one has a measurement */
509
+ if (sorted_list_tracker[i]->getNoMeasurementCount() <= 0) {
510
+ should_delete_tracker2 = true;
511
+ }
512
513
514
0 commit comments