-
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(pid_longitudinal_controller): use is_autoware_control_enabled for manual driving #5092
fix(pid_longitudinal_controller): use is_autoware_control_enabled for manual driving #5092
Conversation
… manual driving Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@TakaHoribe Could you check if my understanding is correct. |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #5092 +/- ##
==========================================
- Coverage 15.77% 15.77% -0.01%
==========================================
Files 1584 1584
Lines 109568 109569 +1
Branches 33728 33730 +2
==========================================
Hits 17286 17286
- Misses 73656 73657 +1
Partials 18626 18626
*This pull request uses carry forward flags. Click here to find out more.
☔ View full report in Codecov by Sentry. |
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.
The autoware control is applied when is_autoware_control_enabled = true
and `operation_mode = AUTONOMOUS.
… manual driving (autowarefoundation#5092) * fix(pid_longitudinal_controller): use is_autoware_control_enabled for manual driving Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
… manual driving (autowarefoundation#5092) * fix(pid_longitudinal_controller): use is_autoware_control_enabled for manual driving Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> * update Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com> --------- Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
Description
The following PR uses
m_current_operation_mode.mode
to know if the current driving is autonomous or manual.However, in my understanding, this value can be
AUTONOMOUS
even when the driving is manual.#2619
Actually, I think
m_current_operation_mode.is_autoware_control_enabled && m_current_operation_mode.mode == OperationModeState::AUTONOMOUS
is the correct one.Tests performed
nothing
Effects on system behavior
nothing
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.