-
Notifications
You must be signed in to change notification settings - Fork 673
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): replace any code that can use transient data #8999
refactor(lane_change): replace any code that can use transient data #8999
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
6babfcf
to
eef3cc4
Compare
planning/behavior_path_planner/autoware_behavior_path_lane_change_module/src/scene.cpp
Outdated
Show resolved
Hide resolved
eef3cc4
to
91b60e9
Compare
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
This reverts commit e9cc386.
This reverts commit 775bcdb.
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
91b60e9
to
67114cc
Compare
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
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.
85f578c
into
autowarefoundation:main
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8999 +/- ##
=======================================
Coverage 26.21% 26.22%
=======================================
Files 1302 1303 +1
Lines 96925 96913 -12
Branches 39159 39132 -27
=======================================
+ Hits 25409 25411 +2
+ Misses 68928 68911 -17
- Partials 2588 2591 +3
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
…utowarefoundation#8999) * RT1-8004 replace hasEnoughLength Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Removed isNearEndOfCurrentLanes Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 refactor sample longitudinal acc values Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * remove calc maximum lane change length Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Revert "remove calc maximum lane change length" This reverts commit e9cc386. * Revert "RT1-8004 refactor sample longitudinal acc values" This reverts commit 775bcdb. * replace generateCenterLinePath Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 simplify stuck detection Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * swap call to update filtered_objects and update transient data Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 fix conflict Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Rename isVehicleStuck to is_ego_stuck() Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 change calcPrepareDuration to snake case Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: prakash-kannaiah <prakashkanan.pk@gmail.com>
…utowarefoundation#8999) * RT1-8004 replace hasEnoughLength Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Removed isNearEndOfCurrentLanes Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 refactor sample longitudinal acc values Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * remove calc maximum lane change length Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Revert "remove calc maximum lane change length" This reverts commit e9cc386. * Revert "RT1-8004 refactor sample longitudinal acc values" This reverts commit 775bcdb. * replace generateCenterLinePath Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 simplify stuck detection Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * swap call to update filtered_objects and update transient data Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 fix conflict Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Rename isVehicleStuck to is_ego_stuck() Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 change calcPrepareDuration to snake case Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…utowarefoundation#8999) * RT1-8004 replace hasEnoughLength Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Removed isNearEndOfCurrentLanes Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 refactor sample longitudinal acc values Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * remove calc maximum lane change length Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Revert "remove calc maximum lane change length" This reverts commit e9cc386. * Revert "RT1-8004 refactor sample longitudinal acc values" This reverts commit 775bcdb. * replace generateCenterLinePath Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 simplify stuck detection Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * swap call to update filtered_objects and update transient data Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 fix conflict Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Rename isVehicleStuck to is_ego_stuck() Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 change calcPrepareDuration to snake case Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…utowarefoundation#8999) * RT1-8004 replace hasEnoughLength Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Removed isNearEndOfCurrentLanes Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 refactor sample longitudinal acc values Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * remove calc maximum lane change length Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Revert "remove calc maximum lane change length" This reverts commit e9cc386. * Revert "RT1-8004 refactor sample longitudinal acc values" This reverts commit 775bcdb. * replace generateCenterLinePath Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 simplify stuck detection Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * swap call to update filtered_objects and update transient data Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 fix conflict Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 Rename isVehicleStuck to is_ego_stuck() Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * RT1-8004 change calcPrepareDuration to snake case Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Description
This PR refactors lane change code using TransientData to improve code quality and readability, and reduce complexity.
The function that is no longer used is removed.
Also is_ego stuck is added to transient data.
Related links
Parent Issue:
How was this PR tested?
TIER IV internal evaluator
TIER IV internal evaluator - after swapping filterObjects
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.