Skip to content
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

refactor(pid_longitudinal_controller): set stopped state if ego is not in autonomous mode #3644

Merged
merged 1 commit into from
May 15, 2023

Conversation

brkay54
Copy link
Member

@brkay54 brkay54 commented May 8, 2023

Description

In the current implementation of pid_longitudinal_controller, if the operation mode is changed, the state will be the same. In this situation, if the goal is set, controller enters into DRIVE state until the vehicle reaches the goal. However, if the operation mode is changed while driving and set autonomous again, controller state stays in DRIVE and the controller does not check the keep_stopped_condition. So vehicle starts to driving without checking steering converged or not.

Tests performed

Tested in planning simulator, worked well.
Not applicable.

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.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@brkay54 brkay54 requested review from TakaHoribe, takayuki5168 and a team as code owners May 8, 2023 23:16
@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label May 8, 2023
@codecov
Copy link

codecov bot commented May 8, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.01 ⚠️

Comparison is base (9693e36) 13.82% compared to head (6d558f6) 13.82%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3644      +/-   ##
==========================================
- Coverage   13.82%   13.82%   -0.01%     
==========================================
  Files        1395     1395              
  Lines       98036    98038       +2     
  Branches    29147    29148       +1     
==========================================
  Hits        13553    13553              
- Misses      69826    69827       +1     
- Partials    14657    14658       +1     
Flag Coverage Δ *Carryforward flag
differential 42.03% <0.00%> (?)
total 13.82% <ø> (ø) Carriedforward from 9693e36

*This pull request uses carry forward flags. Click here to find out more.

Impacted Files Coverage Δ
...nal_controller/src/pid_longitudinal_controller.cpp 39.59% <0.00%> (-0.17%) ⬇️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@takayuki5168
Copy link
Contributor

@TakaHoribe Looks good to me. Could you double check please.

Copy link
Contributor

@TakaHoribe TakaHoribe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:control Vehicle control algorithms and mechanisms. (auto-assigned)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants