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

feat(pid_longitudinal_controller): re-organize diff limit structure and fix state change condition #7718

Merged

Conversation

yuki-takagi-66
Copy link
Contributor

@yuki-takagi-66 yuki-takagi-66 commented Jun 27, 2024

Description

This PR re-organize diff limit structure to achieve proper handling of diff limit when the state is changed.
Creep down problems on slopes will be fixed by this PR and #7720.

In the new structure raw_ctrl_cmd denotes acceleration and ctrl_cmd denotes pedal position.

Before
before

After
after

Related links

launch PR: autowarefoundation/autoware_launch#1052

How was this PR tested?

psim, tier4 internal tests and vehicle tests

Notes for reviewers

None.

Interface changes

some of parameters are newly defined and deleted

Effects on system behavior

None.

@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Jun 27, 2024
Copy link

github-actions bot commented Jun 27, 2024

Thank you for contributing to the Autoware project!

🚧 If your pull request is in progress, switch it to draft mode.

Please ensure:

@yuki-takagi-66 yuki-takagi-66 changed the title fix(pid_longitudinal_controller): fix diff limit structure and state change condition feat(pid_longitudinal_controller): fix diff limit structure and state change condition Jun 27, 2024
@yuki-takagi-66 yuki-takagi-66 force-pushed the pid_long-fix-diff-limit-structure branch from 05f92aa to 50246ad Compare July 3, 2024 10:42
@yuki-takagi-66 yuki-takagi-66 changed the title feat(pid_longitudinal_controller): fix diff limit structure and state change condition feat(pid_longitudinal_controller): re-organize diff limit structure and state change condition Jul 4, 2024
@yuki-takagi-66 yuki-takagi-66 force-pushed the pid_long-fix-diff-limit-structure branch 2 times, most recently from f6c1ceb to 4ddfab9 Compare July 4, 2024 07:44
@yuki-takagi-66 yuki-takagi-66 changed the title feat(pid_longitudinal_controller): re-organize diff limit structure and state change condition feat(pid_longitudinal_controller): re-organize diff limit structure and fix state change condition Jul 4, 2024
@yuki-takagi-66 yuki-takagi-66 force-pushed the pid_long-fix-diff-limit-structure branch 3 times, most recently from b20cb8d to ec235f0 Compare July 4, 2024 09:48
@yuki-takagi-66 yuki-takagi-66 force-pushed the pid_long-fix-diff-limit-structure branch 2 times, most recently from ded4de4 to 945722b Compare July 19, 2024 06:33
@yuki-takagi-66 yuki-takagi-66 marked this pull request as ready for review July 19, 2024 10:08
@yuki-takagi-66 yuki-takagi-66 force-pushed the pid_long-fix-diff-limit-structure branch from 29e05a2 to e0dafc0 Compare July 22, 2024 05:08
fix diff limit structure
fix stopped condition
define a new param

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
@yuki-takagi-66 yuki-takagi-66 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Jul 24, 2024
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
Copy link

codecov bot commented Jul 24, 2024

Codecov Report

Attention: Patch coverage is 71.11111% with 13 lines in your changes missing coverage. Please review.

Project coverage is 29.13%. Comparing base (fe03b39) to head (8680587).
Report is 15 commits behind head on main.

Files Patch % Lines
...nal_controller/src/pid_longitudinal_controller.cpp 71.11% 9 Missing and 4 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7718      +/-   ##
==========================================
- Coverage   29.13%   29.13%   -0.01%     
==========================================
  Files        1609     1609              
  Lines      118154   118174      +20     
  Branches    50846    50850       +4     
==========================================
+ Hits        34426    34429       +3     
- Misses      74517    74532      +15     
- Partials     9211     9213       +2     
Flag Coverage Δ *Carryforward flag
differential 17.80% <71.11%> (?)
total 29.12% <ø> (-0.02%) ⬇️ Carriedforward from fe03b39

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yuki-takagi-66 yuki-takagi-66 merged commit f33635c into autowarefoundation:main Jul 24, 2024
29 of 30 checks passed
@yuki-takagi-66 yuki-takagi-66 deleted the pid_long-fix-diff-limit-structure branch July 24, 2024 04:53
yuki-takagi-66 added a commit to tier4/autoware.universe that referenced this pull request Jul 24, 2024
…nd fix state change condition (autowarefoundation#7718)

change diff limit structure
change stopped condition
define a new param

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
saka1-s pushed a commit to tier4/autoware.universe that referenced this pull request Jul 25, 2024
* feat(simple_planning_simulator): add new vehicle model with falling down (autowarefoundation#7651)

* add new vehicle model

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

* refactor(vehicle_cmd_gate)!: delete rate limit skipping function for vehicle departure (autowarefoundation#7720)

* delete a fucntion block. More appropriate function can be achieved by the parameter settings.
* add notation to readme
---------
Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

* feat(pid_longitudinal_controller): re-organize diff limit structure and fix state change condition (autowarefoundation#7718)

change diff limit structure
change stopped condition
define a new param

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>

---------

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
chihungtzeng pushed a commit to chihungtzeng/autoware.universe that referenced this pull request Jul 26, 2024
…nd fix state change condition (autowarefoundation#7718)

change diff limit structure
change stopped condition
define a new param

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
esteve pushed a commit to esteve/autoware.universe that referenced this pull request Aug 13, 2024
…nd fix state change condition (autowarefoundation#7718)

change diff limit structure
change stopped condition
define a new param

Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
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) run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants