Skip to content
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

Conversation

zulfaqar-azmi-t4
Copy link

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 commented Oct 21, 2024

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.

image

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.

lane_change_redesign-Test_ computing distance to lane change

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.

lane_change_redesign-Test_ computing distance to lane change (1)

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

⚠️ Required launcher PR: https://github.com/tier4/autoware_launch.x2/pull/826

Related links

autowarefoundation#9124

Parent Issue:

  • Link

How was this PR tested?

Notes for reviewers

None.

Interface changes

None.

Effects on system behavior

None.

Copy link

sonarcloud bot commented Oct 21, 2024

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 force-pushed the RT0-33893-enable-cancel-when-ego-in-turn-direction-lane branch from 8197211 to f6de32d Compare November 5, 2024 10:22
Signed-off-by: Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
@zulfaqar-azmi-t4 zulfaqar-azmi-t4 marked this pull request as ready for review November 7, 2024 00:29
@@ -42,11 +43,15 @@ struct LaneChangeStatus
LaneChangePath lane_change_path{};
lanelet::ConstLanelets current_lanes{};
lanelet::ConstLanelets target_lanes{};
lanelet::ConstLanelet current_lane{};
Copy link

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

Copy link
Author

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]>
Copy link

sonarcloud bot commented Nov 7, 2024

@takayuki5168 takayuki5168 merged commit f18e714 into beta/v0.19.1-pc-develop Nov 7, 2024
14 of 18 checks passed
@takayuki5168 takayuki5168 deleted the RT0-33893-enable-cancel-when-ego-in-turn-direction-lane branch November 7, 2024 10:39
saka1-s pushed a commit that referenced this pull request Nov 11, 2024
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants