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

fix(pid_longitudinal_controller): better slope compensation #5095

Merged

Conversation

takayuki5168
Copy link
Contributor

@takayuki5168 takayuki5168 commented Sep 24, 2023

Description

Depends on #5090

In the case where the slope angle is positive before the goal and negative after the goal as shown in the figure, the current slope compensation works in the opposite direction.
image

Tests performed

psim

Effects on system behavior

Better slope compensation when arriving at the goal.

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.

@github-actions github-actions bot added the component:control Vehicle control algorithms and mechanisms. (auto-assigned) label Sep 24, 2023
@takayuki5168 takayuki5168 marked this pull request as ready for review September 24, 2023 02:02
@takayuki5168 takayuki5168 added the run:build-and-test-differential Mark to enable build-and-test-differential workflow. (used-by-ci) label Sep 24, 2023
@codecov
Copy link

codecov bot commented Sep 24, 2023

Codecov Report

Patch coverage: 31.57% and project coverage change: -0.02% ⚠️

Comparison is base (ec99b2f) 15.02% compared to head (02c0c52) 15.00%.
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5095      +/-   ##
==========================================
- Coverage   15.02%   15.00%   -0.02%     
==========================================
  Files        1608     1608              
  Lines      111740   111712      -28     
  Branches    34645    34641       -4     
==========================================
- Hits        16788    16762      -26     
- Misses      76244    76248       +4     
+ Partials    18708    18702       -6     
Flag Coverage Δ *Carryforward flag
differential 41.28% <31.57%> (?)
total 15.00% <ø> (-0.03%) ⬇️ Carriedforward from ec99b2f

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

Files Changed Coverage Δ
...dinal_controller/longitudinal_controller_utils.hpp 35.00% <ø> (ø)
...nal_controller/src/pid_longitudinal_controller.cpp 39.24% <0.00%> (-0.48%) ⬇️
...roller/test/test_longitudinal_controller_utils.cpp 51.20% <ø> (-1.75%) ⬇️
...avior_velocity_intersection_module/src/manager.cpp 18.57% <ø> (ø)
...ction_module/src/scene_merge_from_private_road.cpp 0.00% <ø> (ø)
...n_planner/src/lanelet2_plugins/default_planner.cpp 21.80% <ø> (ø)
...elocity_smoother/motion_velocity_smoother_node.hpp 0.00% <ø> (ø)
...ity_smoother/src/motion_velocity_smoother_node.cpp 28.25% <ø> (-0.22%) ⬇️
...l_controller/src/longitudinal_controller_utils.cpp 79.31% <85.71%> (-3.77%) ⬇️

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

Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
@takayuki5168 takayuki5168 force-pushed the feat/better-slope-compensation branch from 3019ad8 to 02c0c52 Compare September 25, 2023 02:12
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.

Note: we need a trajectory even after the goal point for a few meters to get the slope information. This should be implemented in the goal planner, I guess?

@takayuki5168 takayuki5168 merged commit 7f98ecf into autowarefoundation:main Sep 25, 2023
@takayuki5168 takayuki5168 deleted the feat/better-slope-compensation branch September 25, 2023 05:16
takayuki5168 added a commit to tier4/autoware.universe that referenced this pull request Sep 25, 2023
maxime-clem pushed a commit to maxime-clem/autoware.universe that referenced this pull request Oct 2, 2023
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