-
Notifications
You must be signed in to change notification settings - Fork 696
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(lane_change): check prepare phase in intersection #6561
fix(lane_change): check prepare phase in intersection #6561
Conversation
cfdf6cf
to
e9ee1e0
Compare
e9ee1e0
to
8c10227
Compare
b1c9169
to
c1bac96
Compare
c1bac96
to
0f6e106
Compare
@Owen-Liuyuxuan |
0f6e106
to
2f1597d
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6561 +/- ##
==========================================
- Coverage 14.94% 14.94% -0.01%
==========================================
Files 1942 1942
Lines 133948 133977 +29
Branches 39841 39856 +15
==========================================
Hits 20022 20022
- Misses 91650 91677 +27
- Partials 22276 22278 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
8b5312a
to
3d8eb34
Compare
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Muhammad 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.
It seems OK on my side. I found nothing to complain at the current version.
@@ -872,21 +872,24 @@ LaneChangeTargetObjects NormalLaneChange::getTargetObjects( | |||
// objects in current lane | |||
for (const auto & obj_idx : target_obj_index.current_lane) { | |||
const auto extended_object = utils::lane_change::transform( | |||
objects.objects.at(obj_idx), common_parameters, *lane_change_parameters_); | |||
objects.objects.at(obj_idx), common_parameters, *lane_change_parameters_, | |||
check_prepare_phase()); |
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.
It seems that check_prepare_phase
should return the same results for all objects in different lanes. (Notify me if that is not correct). Then the function is better not be called in loops like this. Or is there any plans to make check_prepare_phase
to be even more dynamic?
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.
Thank you, this has been completed by the new update.
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.
Thank you for the comment @Owen-Liuyuxuan.
Yes, as you mentioned, it was updated in 8c4258e
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
@Owen-Liuyuxuan If you can press approved, that would be very helpful. |
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
5ff3b17
into
autowarefoundation:main
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
* fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
…tion#6561) * fix(lane_change): check prepare phase in intersection Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Add new parameter, also create function Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Rename parameters Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * fix spell check * fix config file Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * call the function check_prepare_phase only once Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * add parameter description in README Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * minor refactoring Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> * Doxygen description Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> --------- Signed-off-by: Muhammad Zulfaqar Azmi <zulfaqar.azmi@tier4.jp> Signed-off-by: Zulfaqar Azmi <zulfaqar.azmi@tier4.jp>
Description
Due to lane change is performed instantaneously after exiting from the intersection, sometimes the safety check might be a little be delayed, causes the CANCEL process to not be executed when necessary.
To avoid this issue, we have to increase the lane change safety check horizon, by also performing the safety check for the prepare phase when ego vehicle is in the intersection.
Before PR
before_intersection_check-.2024-03-07-15-12-20.mp4
After PR
with_intersection_check-.2024-03-07-15-54-40.mp4
Related links
None
Tests performed
PSIM, and rosbag.
Evaluator: TBA
Notes for reviewers
None
Interface changes
None
Effects on system behavior
None
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.