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(behavior_path_planner): check lane departure and relative angle for lane change #2379

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

kosuke55
Copy link
Contributor

@kosuke55 kosuke55 commented Nov 25, 2022

Signed-off-by: kosuke55 kosuke.tnp@gmail.com

Description

Lane change module sometimes generates an invalid path.

2022-11-22-19-25-50.mp4

The root cause has not been determined, but in this PR such kind of path is filtered by checking lane_departure and relative_angle.

Related links

tier4 internal link

Tests performed

psim

  • Intentionally generate invalid path(out of lane)
    • APPROVE is canceled and returns to WaitingApprove
lane_change_safe_path_check-2022-11-25_22.03.55.mp4
  • When the path is valid, we can change the lane as usual.
lane_change_safe_path_check-2022-11-25_22.10.03.mp4

Notes for reviewers

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.

…or lane change

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@github-actions github-actions bot added the component:planning Route planning, decision-making, and navigation. (auto-assigned) label Nov 25, 2022
@@ -73,7 +80,7 @@ void LaneChangeModule::onEntry()
void LaneChangeModule::onExit()
{
resetParameters();
current_state_ = BT::NodeStatus::IDLE;
current_state_ = BT::NodeStatus::SUCCESS;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not familiar with it much, but it may be better to change to SUCCESS also for other modules with another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed in #2391

@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Base: 10.48% // Head: 10.45% // Decreases project coverage by -0.03% ⚠️

Coverage data is based on head (9ec3d19) compared to base (8d33e62).
Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2379      +/-   ##
==========================================
- Coverage   10.48%   10.45%   -0.04%     
==========================================
  Files        1248     1248              
  Lines       91218    91524     +306     
  Branches    21012    21189     +177     
==========================================
  Hits         9566     9566              
- Misses      71466    71761     +295     
- Partials    10186    10197      +11     
Flag Coverage Δ *Carryforward flag
differential 3.18% <0.00%> (?)
total 10.46% <0.00%> (ø) Carriedforward from 8d33e62

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...er/scene_module/lane_change/lane_change_module.hpp 0.00% <ø> (ø)
...lanner/include/behavior_path_planner/utilities.hpp 26.31% <ø> (ø)
...rc/scene_module/lane_change/lane_change_module.cpp 0.00% <0.00%> (ø)
planning/behavior_path_planner/src/utilities.cpp 3.36% <0.00%> (-0.37%) ⬇️
...th_planner/scene_module/scene_module_interface.hpp 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Contributor

@rej55 rej55 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
Contributor

@zulfaqar-azmi-t4 zulfaqar-azmi-t4 left a comment

Choose a reason for hiding this comment

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

seems like everything is okay. Thank you very much @kosuke55
LGTM!

@kosuke55 kosuke55 merged commit 49f9437 into autowarefoundation:main Nov 28, 2022
@kosuke55 kosuke55 deleted the fix/lane_change_safe_path branch November 28, 2022 12:10
tkimura4 pushed a commit to tier4/autoware.universe that referenced this pull request Nov 29, 2022
…or lane change (autowarefoundation#2379)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Nov 30, 2022
…or lane change (autowarefoundation#2379) (#192)

* fix(behavior_path_planner): check lane departure and relative angle for lane change (autowarefoundation#2379)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: extend lanes for lane_departure_checker

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* fix: extend lanes

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: expand lane

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Dec 1, 2022
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Dec 1, 2022
…e for lane change (autowarefoundation#2379)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Dec 1, 2022
…e for lane change (autowarefoundation#2379) (#196)

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Dec 8, 2022
…or lane change (autowarefoundation#2379) (#192)

* fix(behavior_path_planner): check lane departure and relative angle for lane change (autowarefoundation#2379)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: extend lanes for lane_departure_checker

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* fix: extend lanes

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: expand lane

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
tkimura4 added a commit to tier4/autoware.universe that referenced this pull request Dec 9, 2022
…or lane change (#202)

* fix(behavior_path_planner): check lane departure and relative angle for lane change (autowarefoundation#2379) (#192)

* fix(behavior_path_planner): check lane departure and relative angle for lane change (autowarefoundation#2379)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: extend lanes for lane_departure_checker

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* fix: extend lanes

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

* feat: expand lane

Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>

* fix(behavior_path_planner): fix lane change path validation (autowarefoundation#2421)

* fix(behavior_path_planner): clip_path_for_goal

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>

* fix(behavior_path_planner): clip path for validation

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>

* fix(behavior_path_planner): use path point only to check lane departure

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>

* fix(behavior_path_planner): remove unnecessary change

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>

Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
Co-authored-by: Kosuke Takeuchi <kosuke.tnp@gmail.com>
Co-authored-by: Fumiya Watanabe <rej55.g@gmail.com>
kminoda pushed a commit to kminoda/autoware.universe that referenced this pull request Jan 6, 2023
…or lane change (autowarefoundation#2379)

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>

Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
Signed-off-by: kminoda <koji.minoda@tier4.jp>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:planning Route planning, decision-making, and navigation. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants