-
Notifications
You must be signed in to change notification settings - Fork 630
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): disable avoidance if ego is not on preferred lane #2781
fix(behavior_path_planner): disable avoidance if ego is not on preferred lane #2781
Conversation
Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
const auto current_lanes = util::getCurrentLanes(planner_data_); | ||
lanelet::ConstLanelet current_lane; | ||
lanelet::utils::query::getClosestLanelet( | ||
current_lanes, planner_data_->self_pose->pose, ¤t_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.
planner_data_->self_pose->pose
In the latest code, this has been replaced with planner_data_->self_odometry->pose.pose
.
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.
Done
8f9311f
Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
b82c3d7
to
8f9311f
Compare
Codecov ReportBase: 11.66% // Head: 11.55% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2781 +/- ##
==========================================
- Coverage 11.66% 11.55% -0.12%
==========================================
Files 1314 1314
Lines 91572 92459 +887
Branches 24366 25050 +684
==========================================
Hits 10681 10681
- Misses 69740 70567 +827
- Partials 11151 11211 +60
*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. |
…red lane (autowarefoundation#2781) * fix(behavior_path_planner): disable avoidance in preferred lane Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * fix(behavior_path_planner): use odometry Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> --------- Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> Signed-off-by: Alexey Panferov <lexavtanke@gmail.com>
…red lane (autowarefoundation#2781) * fix(behavior_path_planner): disable avoidance in preferred lane Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> * fix(behavior_path_planner): use odometry Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com> --------- Signed-off-by: Fumiya Watanabe <rej55.g@gmail.com>
Signed-off-by: Fumiya Watanabe rej55.g@gmail.com
Description
Before this change, if ego vehicle is near of the objects, avoidance is preferred over lane change.
To fix this behavior, in this change, it disables avoidance module if ego vehicle is not on preferred lane.
Related links
Tests performed
Tested in planning simulator.
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.