-
Notifications
You must be signed in to change notification settings - Fork 65
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(path_generator): deal with unintended input #336
fix(path_generator): deal with unintended input #336
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
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.
Please add unit tests that try unintended inputs.
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
a4a213e
to
02c0d7c
Compare
thanks!
already return nullopt when input size is less than2 points. so no need to fix more. |
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
now we can't run evaluator becase autoware setup is broken |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #336 +/- ##
===========================================
- Coverage 78.75% 18.42% -60.33%
===========================================
Files 11 97 +86
Lines 193 4694 +4501
Branches 73 924 +851
===========================================
+ Hits 152 865 +713
- Misses 11 3716 +3705
- Partials 30 113 +83
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
6915692
to
50612a6
Compare
-> sorry, please don't care this result |
50612a6
to
b586fd9
Compare
Changed lanelet2_extension version to 0.6.4 |
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
Signed-off-by: mitukou1109 <mitukou1109@gmail.com>
b586fd9
to
bb74f8f
Compare
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 ! all scenario tests passed
Description
This PR fixes the behavior of
path_generator
's utility functions for unintended input.get_first_intersection_arc_length()
returnsstd::nullopt
if either of the input lanelet sequence or the line strings generated during the process is emptyget_path_bounds()
returnsstd::nullopt
if the input lanelet sequence is emptycrop_line_string()
returns the input line string as is if it consists of less than 3 pointscrop_line_string()
returns the input line string as is if the start of the crop bound is negative or the start is larger than the endget_arc_length_on_bounds()
returns 0 if the input arc length is negativeget_arc_length_on_centerline()
returns 0 if the input arc length is negativeHow was this PR tested?
2025/04/09 https://evaluation.tier4.jp/evaluation/reports/9e238d3c-7940-526d-be8e-27b70954f684/?project_id=prd_jt 96/96
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.