-
Notifications
You must be signed in to change notification settings - Fork 675
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(avoidance): fix condition to trim front shift line #5949
fix(avoidance): fix condition to trim front shift line #5949
Conversation
Signed-off-by: satoshi-ota <[email protected]>
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
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5949 +/- ##
==========================================
- Coverage 15.28% 15.27% -0.01%
==========================================
Files 1750 1750
Lines 120432 120465 +33
Branches 36729 36761 +32
==========================================
+ Hits 18404 18406 +2
- Misses 81375 81382 +7
- Partials 20653 20677 +24
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
…ation#5949) Signed-off-by: satoshi-ota <[email protected]>
Description
Avoidance module keeps distance between ego and shift line start point farther than threshold. And it trims shift lines whose start point is closer than threshold as invalid path. But both of threshold (shift line generation and validation) refer common value (calculate in
helper_->getMinimumPrepareDistance()
).Then, sometimes front shift line is trimmed unexpectedly.As a result, invalid output path is generated. In this PR, I fixed validate function and add
1e-3
to check condition.Tests performed
Psim
Effects on system behavior
Nothing.
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.