-
Notifications
You must be signed in to change notification settings - Fork 33
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): enable cancel when ego in turn direction lane (RT0-33893) #1594
fix(lane_change): enable cancel when ego in turn direction lane (RT0-33893) #1594
Conversation
Quality Gate passedIssues Measures |
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
8197211
to
f6de32d
Compare
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
@@ -42,11 +43,15 @@ struct LaneChangeStatus | |||
LaneChangePath lane_change_path{}; | |||
lanelet::ConstLanelets current_lanes{}; | |||
lanelet::ConstLanelets target_lanes{}; | |||
lanelet::ConstLanelet current_lane{}; |
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.
I think ego_lane
like in main PR is better to make it easier to distinguish from current_lanes
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.
changed in ad79c78
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Quality Gate passedIssues Measures |
…33893) (#1594) * yield at intersection by making the check conservative Signed-off-by: Zulfaqar Azmi <[email protected]> * make code of similar to main branch Signed-off-by: Zulfaqar Azmi <[email protected]> * fix build error Signed-off-by: Zulfaqar Azmi <[email protected]> * fix logic Signed-off-by: Zulfaqar Azmi <[email protected]> * update README Signed-off-by: Zulfaqar Azmi <[email protected]> * change variable name Signed-off-by: Zulfaqar Azmi <[email protected]> --------- Signed-off-by: Zulfaqar Azmi <[email protected]>
Description
When performing a lane change after an intersection, nearby vehicle might attempt to overtake the ego vehicle. Although simulations may suggest the maneuver is safe, real world testing shows it can feel unsafe. This is particularly true in intersections, where surrounding vehicle often exhibits significant speed variations and unpredictable behavior.
The image below illustrates such a scenario.
In this situation, rear vehicle may either stop abruptly or accelerate suddenly, making it challenging for the safety check to produce reliable result.
This PR addresses the issue by making the lane change module adopt a more conservative approach near intersection.
If the ego vehicle is within an intersection and currently in a turn lane, the lane change module will output an invalid path.
Additionally, if the ego vehicle has just exited the turn lane of an intersection and its distance from the intersection is within the backward_length_from_intersection, the lane change will also be marked as invalid.
The module also monitors objects behind the ego vehicle. If their highest-confidence predicted path overlaps with the target lanes, the lane change path will be cancelled.
Result after PR
Related links
autowarefoundation#9124
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.