-
Notifications
You must be signed in to change notification settings - Fork 668
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
fix(behavior_path_planner): check lane departure and relative angle for lane change #2379
Conversation
…or lane change Signed-off-by: kosuke55 <kosuke.tnp@gmail.com>
@@ -73,7 +80,7 @@ void LaneChangeModule::onEntry() | |||
void LaneChangeModule::onExit() | |||
{ | |||
resetParameters(); | |||
current_state_ = BT::NodeStatus::IDLE; | |||
current_state_ = BT::NodeStatus::SUCCESS; |
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.
/// IMPORTANT: Your custom nodes should NEVER return IDLE.
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 am not familiar with it much, but it may be better to change to SUCCESS also for other modules with another PR.
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.
fixed in #2391
Codecov ReportBase: 10.48% // Head: 10.45% // Decreases project coverage by
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
*This pull request uses carry forward flags. Click here to find out more.
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. |
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
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.
seems like everything is okay. Thank you very much @kosuke55
LGTM!
…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>
…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>
… angle for lane change (autowarefoundation#2379) (#192)" This reverts commit 52fd315.
…e for lane change (autowarefoundation#2379) Signed-off-by: tomoya.kimura <tomoya.kimura@tier4.jp>
…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>
…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>
…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>
…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>
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
lane_change_safe_path_check-2022-11-25_22.03.55.mp4
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.
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.