-
Notifications
You must be signed in to change notification settings - Fork 682
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(motion_utils): check if the buffer is empty #3883
fix(motion_utils): check if the buffer is empty #3883
Conversation
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #3883 +/- ##
==========================================
+ Coverage 13.80% 14.08% +0.27%
==========================================
Files 1391 1523 +132
Lines 97408 116829 +19421
Branches 28829 36790 +7961
==========================================
+ Hits 13451 16456 +3005
- Misses 69501 83299 +13798
- Partials 14456 17074 +2618
*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
) (#553) * fix(motion_utils): check if the buffer is empty * add test to check if the old data is discarded --------- Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
fix(motion_utils): check if the buffer is empty (#3883) * fix(motion_utils): check if the buffer is empty * add test to check if the old data is discarded --------- Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp> Co-authored-by: Tomohito ANDO <tomohito.ando@tier4.jp>
Description
In the current implementation, node will die if the data that has old timestamp is passed to the VehicleStopChecker.
This can happen when traffic load increases and message subscribe is delayed.
This is the same issue as this PR.
Tests performed
I added the test and confirmed the program will not die.
Before the change
After the change
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.