-
Notifications
You must be signed in to change notification settings - Fork 696
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(mpc_lateral_controller): visualize/correct the longitudinal and lateral deviations for pid and mpc #6268
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
…ative function prototype defined Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
…e incorrect Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
…tude, but the current_acc may only be available by subscribing Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
…ecific Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
…al reference, that is mpc_resampled_ref_trajectory). publish the mpc_data_traj_raw.lateral_err w.r.t. the raw planned path Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Confirmed that the parameter is added. Screencast.from.2024.02.01.16.23.37.webm |
@HansOersted Can you please update the documentation as well in the same PR so that if user read the documents, they will know what are the available topics they can use to debug, and what are the significance from observing the topic? |
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
description added a47aae1 |
| The signal | Number | | ||
| :------------------------------------------------------------- | :----- | | ||
| final steering command (MPC + Clamp + LPF) | [0] | | ||
| MPC result | [1] | | ||
| MPC after Clamp (MPC + Clamp) | [21] | | ||
| feedforward term (reference steering angle) | [2] | | ||
| lateral error w.r.t the modified reference, feeding MPC module | [5] | | ||
| lateral error w.r.t the original reference, feeding mpc.cpp | [22] | | ||
|
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.
You probably have to fix this part
If you view it in the generated documents, it is like this.
https://autowarefoundation.github.io/autoware.universe/pr-6268/control/mpc_lateral_controller/#:~:text=/control/trajectory_follower/lateral,mpc.cpp%20%7C%20%5B22%5D%20%7C
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.
fixed in 6ba472a
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #6268 +/- ##
=======================================
Coverage 14.79% 14.79%
=======================================
Files 1917 1917
Lines 131985 132003 +18
Branches 39228 39234 +6
=======================================
+ Hits 19522 19529 +7
- Misses 90673 90684 +11
Partials 21790 21790
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
control/lane_departure_checker/include/lane_departure_checker/lane_departure_checker.hpp
Outdated
Show resolved
Hide resolved
control/lane_departure_checker/include/lane_departure_checker/lane_departure_checker.hpp
Outdated
Show resolved
Hide resolved
control/lane_departure_checker/src/lane_departure_checker_node/lane_departure_checker.cpp
Outdated
Show resolved
Hide resolved
control/mpc_lateral_controller/include/mpc_lateral_controller/mpc.hpp
Outdated
Show resolved
Hide resolved
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
Signed-off-by: Zhe Shen <lucidshenzhe@gmail.com>
@HansOersted |
This pull request has been automatically marked as stale because it has not had recent activity. |
@HansOersted @takayuki5168 could you finish this task? |
This pull request has been automatically marked as stale because it has not had recent activity. |
Description
The PID and MPC controllers are to stabilize the longitudinal velocity and lateral position, respectively.
Specifically, they intend to decrease the deviations (state - reference) or state error (reference -state).
This PR publishes the following deviations (state - reference) for evaluating the quality of the controllers:
The deviation of the longitudinal position is published.
The deviation of the longitudinal velocity is published.
The deviation of the lateral position (with respect to the actual reference feeding the optimization module) is corrected.
The deviation of the lateral position (with respect to the original raw planned date feeding MPC.cpp) is added.
These topics can be further visualized by third-party app, e.g., plotjuggler.
Related links
Tests performed
Screencast.from.02-01-2024.11.25.03.AM.webm
Longitudidal position deviation:

Longitudidal velocity deviation:

Lateral position deviation:

( red: w.r.t. the raw reference feeding mpc.cpp. green: w.r.t. the actual reference feeding the optimization module.)
Notes for reviewers
Interface 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.