-
Notifications
You must be signed in to change notification settings - Fork 668
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(bytetrack): fix uninteded roi value error due to casting int to uint #5589
fix(bytetrack): fix uninteded roi value error due to casting int to uint #5589
Conversation
Signed-off-by: yoshiri <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5589 +/- ##
==========================================
- Coverage 14.77% 14.77% -0.01%
==========================================
Files 1663 1663
Lines 115150 115156 +6
Branches 35519 35519
==========================================
Hits 17013 17013
- Misses 78930 78936 +6
Partials 19207 19207
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but I have not confirmed it on the actual ECU.
OK. This is just quick fix. So I will merge it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
I confirmed that this modification can be built on a perception ECU. Thank you for the fixing @YoshiRi !
…int (autowarefoundation#5589) * fix uint32 conversion bug in bytetrack Signed-off-by: yoshiri <[email protected]> * refactor outside xy variable --------- Signed-off-by: yoshiri <[email protected]>
…int (autowarefoundation#5589) * fix uint32 conversion bug in bytetrack Signed-off-by: yoshiri <[email protected]> * refactor outside xy variable --------- Signed-off-by: yoshiri <[email protected]>
Description
Sometimes bytetrack publish invalid roi with very large x or y offset value like
4294967293
.I found this is caused by mis-type casting from bytetrack roi
int32
to ros message roiuint32
.So I fixed message conversion part.
🤖 Generated by Copilot at 7c8e94f
Fix bytetrack node crash when roi is outside of image. Adjust roi values to fit image boundaries and message type in
perception/bytetrack/src/bytetrack_node.cpp
.Tests performed
Tested with yolo roi and odaiba video image.
Original yolo roi do not publish invalid rois and after this PR, bytetrack also publish invalid rois.
Effects on system behavior
Not applicable.
Pre-review checklist for the PR author
The PR author must check the checkboxes below when creating the PR.
In-review checklist for the PR reviewers
The PR reviewers must check the checkboxes below before approval.
Post-review checklist for the PR author
The PR author must check the checkboxes below before merging.
After all checkboxes are checked, anyone who has write access can merge the PR.