-
Notifications
You must be signed in to change notification settings - Fork 650
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
refactor(lane_change): move several functions from lane change utils to NormalLaneChange #4273
Conversation
Signed-off-by: yutaka <purewater0901@gmail.com>
Signed-off-by: yutaka <purewater0901@gmail.com>
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4273 +/- ##
==========================================
- Coverage 15.20% 15.18% -0.03%
==========================================
Files 1489 1489
Lines 102660 102670 +10
Branches 31529 31527 -2
==========================================
- Hits 15611 15586 -25
- Misses 70097 70141 +44
+ Partials 16952 16943 -9
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp
Outdated
Show resolved
Hide resolved
planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp
Outdated
Show resolved
Hide resolved
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!
…to NormalLaneChange (autowarefoundation#4273) * refactor(lane_change): move getPrepareSegment to a class function Signed-off-by: yutaka <purewater0901@gmail.com> * move hasEnoughLength function to NormalLaneChange Signed-off-by: yutaka <purewater0901@gmail.com> * udpate Signed-off-by: yutaka <purewater0901@gmail.com> * update Signed-off-by: yutaka <purewater0901@gmail.com> --------- Signed-off-by: yutaka <purewater0901@gmail.com>
Description
In order to reduce the arguments in the
getPrepareSegment
,hasEnoughLength
andgetTargetObjects
, I moved them to theNormalLaneChange
class. Therefore, it has two less arguments than before. Moreover, I removed a singlemaybe unused
flag to clean the code.Tests performed
1577/1588
TIER IV Internal Link
Effects on system behavior
No effects.
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.