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): cherry-pick several lane change commits #1300

Merged
merged 12 commits into from
May 20, 2024

Conversation

zulfaqar-azmi-t4
Copy link

Description

⚠️The following PR needs to be merged together
https://github.com/tier4/autoware_launch.xx1/pull/852

cherry pick several lane change commits

Related links

Tests performed

Run it with PSIM

Notes for reviewers

Interface changes

There's new parameter changes

enable_collision_check_at_prepare_phase is separated 

into

enable_collision_check_for_prepare_phase.general_lanes
enable_collision_check_for_prepare_phase.intersection
enable_collision_check_for_prepare_phase.turns

Effects on system behavior

Lane change cancel is more conservative when ego vehicle is making turns or in the intersections.

Lane change now ignores any object that has orientation difference > 90 degree

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.

  • The PR follows the pull request guidelines.
  • The PR has been properly tested.
  • The PR has been reviewed by the code owners.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.
  • The PR is ready for merge.

After all checkboxes are checked, anyone who has write access can merge the PR.

zulfaqar-azmi-t4 and others added 12 commits May 16, 2024 15:24
…tion#6561)

* fix(lane_change): check prepare phase in intersection

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Add new parameter, also create function

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Rename parameters

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* fix spell check

* fix config file

Signed-off-by: Zulfaqar Azmi <[email protected]>

* call the function check_prepare_phase only once

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* add parameter description in README

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* minor refactoring

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Doxygen description

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
…arefoundation#6726)

* feat(lane_change): check prepare phase in turn direction lanes

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Doxygen comment

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Add config

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* fix comments by the reviewer

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
…arefoundation#6760)

* feat(lane_change): use external velocity limit in safety check

Signed-off-by: Muhammad Zulfaqar <[email protected]>

* style(pre-commit): autofix

* Minor refactoring

Signed-off-by: Muhammad Zulfaqar <[email protected]>

* Fix spell check and remove headers

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Add warning

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Muhammad Zulfaqar <[email protected]>
Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…utowarefoundation#6784)

* refactor(lane_change): make return previous output a common function

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Replace all prev module's variable

Signed-off-by: Zulfaqar Azmi <[email protected]>

* fix build error in ablc

Signed-off-by: Zulfaqar Azmi <[email protected]>

* slight refactoring

Signed-off-by: Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Zulfaqar Azmi <[email protected]>
…utowarefoundation#6943)

* refactor(lane_change): move getCurrentTurnSignalInfo to scene file

Signed-off-by: Zulfaqar Azmi <[email protected]>

* style(pre-commit): autofix

* removed reference from trivial variable

Signed-off-by: Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Zulfaqar Azmi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
* refactor(lane_change): rework object filter

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Use preceeding lanes

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* style(pre-commit): autofix

* fix preceding lanes

Signed-off-by: Zulfaqar Azmi <[email protected]>

* Adds flow chart

Signed-off-by: Zulfaqar Azmi <[email protected]>

* prioritize on coming object check instead

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Fix flow chart and rearrange code to early return

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

* Colorize flow chart

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>

---------

Signed-off-by: Muhammad Zulfaqar Azmi <[email protected]>
Signed-off-by: Zulfaqar Azmi <[email protected]>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Copy link
Collaborator

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@shmpwk shmpwk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much!

@shmpwk shmpwk merged commit 9bae39d into beta/v0.26.1 May 20, 2024
17 checks passed
@shmpwk shmpwk deleted the cp-lane-change branch May 20, 2024 04:57
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.

2 participants