-
Notifications
You must be signed in to change notification settings - Fork 682
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_velocity_planner): expend the ego_lane_with_next_lane area #4177
fix(behavior_velocity_planner): expend the ego_lane_with_next_lane area #4177
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #4177 +/- ##
==========================================
- Coverage 15.17% 14.27% -0.90%
==========================================
Files 1496 1571 +75
Lines 102981 108795 +5814
Branches 31621 31705 +84
==========================================
- Hits 15623 15527 -96
- Misses 70365 76369 +6004
+ Partials 16993 16899 -94
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
8a3d3ed
to
40bc386
Compare
@soblin friendly ping |
} | ||
const auto combined_lanelet = | ||
lanelet::utils::combineLaneletsShape(ego_lane_with_next_lanes); | ||
const auto combined_polygon = combined_lanelet.polygon3d(); |
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.
@beyzanurkaya The size of the ego_polygon is critical for collision checking with NPCs, so can you add
const auto trimmed_ego_polygon = getPolygonFromArcLength(ego_lane_with_next_lanes, start_arc_length, end_arc_length);
? This should ensure that the trimmed polygon is not empty. The rest part looks good to me.
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.
@soblin The approach I add didn't use trimmed_ego_polygon
. After adding the line you marked;
const auto trimmed_ego_polygon = getPolygonFromArcLength(ego_lane_with_next_lanes, start_arc_length, end_arc_length);
I don't quite understand where you want to use it. Can you give me more details?
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.
My suggestion is to resurrect trimmed_ego_polygon
variable with this one which is calculated from ego_lane_with_next_lanes
.
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.
@soblin I made the changes you wanted and also I cleaned the code. i think everything is okay now.
7f39964
to
2bf40cb
Compare
Signed-off-by: beyza <bnk@leodrive.ai>
2bf40cb
to
778cd6e
Compare
planning/behavior_velocity_intersection_module/src/scene_intersection.cpp
Outdated
Show resolved
Hide resolved
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 from my side, thanks!
Signed-off-by: beyza <bnk@leodrive.ai>
eba516b
to
c206cf1
Compare
…ea (autowarefoundation#4177) * expend the ego_lane_with_next_lane area Signed-off-by: beyza <bnk@leodrive.ai> * style(pre-commit): autofix * move lanelets_on_path const Signed-off-by: beyza <bnk@leodrive.ai> * style(pre-commit): autofix --------- Signed-off-by: beyza <bnk@leodrive.ai> Co-authored-by: beyza <bnk@leodrive.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
…ea (autowarefoundation#4177) * expend the ego_lane_with_next_lane area Signed-off-by: beyza <bnk@leodrive.ai> * style(pre-commit): autofix * move lanelets_on_path const Signed-off-by: beyza <bnk@leodrive.ai> * style(pre-commit): autofix --------- Signed-off-by: beyza <bnk@leodrive.ai> Co-authored-by: beyza <bnk@leodrive.ai> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Description
fixes: #4153
ego_lane_with_next_lane
only keeps 2 lanes and in some cases, the total length of these combined lanes may not be in the range ofstart_arc_length
andend_arc_length
calculated beforehand. now I add lanelets toego_lane_with_next_lanes
until the total length of added lanelets is between arc values.Tests performed
vokoscreenNG-2023-07-05_19-19-09.mov
Effects on system behavior
Not applicable.
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.