Skip to content

Commit

Permalink
refactor: add warning in update whole tracked object
Browse files Browse the repository at this point in the history
Signed-off-by: yoshiri <[email protected]>
  • Loading branch information
YoshiRi committed Dec 12, 2023
1 parent 2b8f271 commit 3a0f440
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions perception/tracking_object_merger/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,12 @@ void updateOnlyClassification(TrackedObject & main_obj, const TrackedObject & su

void updateWholeTrackedObject(TrackedObject & main_obj, const TrackedObject & sub_obj)
{
if (!objectsHaveSameMotionDirections(main_obj, sub_obj)) {

Check warning on line 485 in perception/tracking_object_merger/src/utils/utils.cpp

View check run for this annotation

Codecov / codecov/patch

perception/tracking_object_merger/src/utils/utils.cpp#L485

Added line #L485 was not covered by tests
// warning
std::cerr << "[object_tracking_merger]: motion direction is different in "
"updateWholeTrackedObject function."
<< std::endl;
}
main_obj = sub_obj;
}

Expand Down

0 comments on commit 3a0f440

Please sign in to comment.