-
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(crosswalk): don't stop in front of the crosswalk if vehicle stuck in intersection #5722
fix(crosswalk): don't stop in front of the crosswalk if vehicle stuck in intersection #5722
Conversation
… in intersection Signed-off-by: satoshi-ota <[email protected]>
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #5722 +/- ##
==========================================
- Coverage 15.32% 9.23% -6.10%
==========================================
Files 1721 14 -1707
Lines 118559 1278 -117281
Branches 37995 756 -37239
==========================================
- Hits 18169 118 -18051
+ Misses 79657 905 -78752
+ Partials 20733 255 -20478
☔ View full report in Codecov by Sentry. |
updateRTCStatus( | ||
getUUID(lane_id), true, std::numeric_limits<double>::lowest(), path.header.stamp); | ||
getUUID(crosswalk_lanelet_id), true, std::numeric_limits<double>::lowest(), | ||
path.header.stamp); | ||
}; | ||
|
||
const auto crosswalk_leg_elem_map = planning_utils::getRegElemMapOnPath<Crosswalk>( | ||
path, rh->getLaneletMapPtr(), planner_data_->current_odometry->pose); | ||
|
||
for (const auto & crosswalk : crosswalk_leg_elem_map) { | ||
// NOTE: The former id is a lane id, and the latter one is a regulatory element's id. |
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.
@satoshi-ota
question for my understanging
crosswalk.second.id(): id of the lanelet on the path
crosswalk.first->crosswalkLanelet().id(): id of the crosswalk lanelet
crosswalk.first->id(): id of the crosswalk regulatory element
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.
Yes.
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!
… in intersection (autowarefoundation#5722) Signed-off-by: satoshi-ota <[email protected]>
Description
🤖[deprecated] Generated by Copilot at 5ee3bc2
This pull request enhances the crosswalk module to handle different types of crosswalks and road situations. It adds and modifies some parameters, variables, and functions in the
CrosswalkModuleManager
,CrosswalkModule
, andPlannerParam
classes, and in theutil.cpp
andutil.hpp
files. It also updates thecrosswalk.param.yaml
configuration file and themanager.cpp
file in the walkway module to support the changes. The main goal is to improve the behavior of the module in complex scenarios where multiple crosswalks and traffic lights are present.Related Ticket: https://tier4.atlassian.net/browse/RT1-4093
Related PR: autowarefoundation/autoware_launch#714
Add new option to skip stuck vehicle checking for crosswalk in intersection. It seems that the vehilce doesn't have to stop in front of the crosswalk even when there is stopped vehicle in intersection because such a vehicle are basically going to move in almost all following situations.
Crosswalk module skips stuck vehicle checking for crosswalks which are satisfied with following conditions:
Therefore, the stuck checking still enables for simple crosswalk like this:
Tests performed
Effects on system behavior
Change crosswalk module behavior for stuck vehicle.
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.