-
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(start_planner): issue when ego does not straddle lane bounds and starts from 0 speed #7004
fix(start_planner): issue when ego does not straddle lane bounds and starts from 0 speed #7004
Conversation
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
if ( | ||
planner_data_->operation_mode->mode == OperationModeState::AUTONOMOUS && | ||
status_.driving_forward && !status_.first_engaged_and_driving_forward_time) { | ||
status_.driving_forward && !status_.first_engaged_and_driving_forward_time && |
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.
Can you keep this condition as before, and
const bool override_ego_stopped_check = std::invoke([&]() { | ||
if (!status_.first_engaged_and_driving_forward_time) { |
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.
and change this condition to needToPrepareBlinkerBeforeStratDrivingForward() or (ego_velocity > moving_velocity_threshold)
?
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 cannot check the current speed, I need a check that tells me if at some point in the PAST the ego has moved faster than the threshold speed. So this approach cannot work.
Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
d0cfc9a
into
autowarefoundation:main
…starts from 0 speed (autowarefoundation#7004) * fix issue when ego does not straddle lane bounds and starts from 0 speed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add new status for ego departed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
#1299) fix(start_planner): issue when ego does not straddle lane bounds and starts from 0 speed (autowarefoundation#7004) * fix issue when ego does not straddle lane bounds and starts from 0 speed * add new status for ego departed --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…starts from 0 speed (autowarefoundation#7004) * fix issue when ego does not straddle lane bounds and starts from 0 speed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add new status for ego departed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> Signed-off-by: vividf <yihsiang.fang@tier4.jp>
…starts from 0 speed (autowarefoundation#7004) * fix issue when ego does not straddle lane bounds and starts from 0 speed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add new status for ego departed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
…starts from 0 speed (autowarefoundation#7004) * fix issue when ego does not straddle lane bounds and starts from 0 speed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> * add new status for ego departed Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com> --------- Signed-off-by: Daniel Sanchez <danielsanchezaran@gmail.com>
Description
When the ego vehicle is starting from a road and not the shoulder lane, it is possible that the blinkers are not properly activated.
This is caused by 2 things:
To solve the issue I added an override for the first check if the ego is doing a pullout, and for the second issue I slightly modified the variable
status_.first_engaged_and_driving_forward_time
to only be initialized when the ego vehicle has surpassed a minimum threshold velocity.Related links
Ticket: TIER IV COMPANY INTERNAL LINK
Tests performed
PSim
cap-.2024-05-14-11-41-18.mp4
Notes for reviewers
Interface changes
ROS Topic Changes
ROS Parameter Changes
Effects on system behavior
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.