-
Notifications
You must be signed in to change notification settings - Fork 345
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
[pid_controller] Fix logic for feedforward_mode with single reference interface #1520
[pid_controller] Fix logic for feedforward_mode with single reference interface #1520
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1520 +/- ##
==========================================
+ Coverage 84.26% 84.29% +0.03%
==========================================
Files 123 123
Lines 11358 11400 +42
Branches 961 966 +5
==========================================
+ Hits 9571 9610 +39
- Misses 1471 1474 +3
Partials 316 316
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
TBH, I don't understand the use-case for the set_feedforward_control
service, but your change looks correct. Thanks for fixing this.
Would you mind writing a test for both branches, with a non-zero feedforward_gain?
I added a test case to cover the single interface. For the use case of two reference interfaces, I need some time to review the current code especially around |
@catcracker, this is to address the suggestions you made in #1260 (comment). If you have some bandwidth, could you review and give it a spin? |
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.
Would you mind writing a test for both branches, with a non-zero feedforward_gain?
I added a test case to cover the single interface. For the use case of two reference interfaces, I need some time to review the current code especially around
measured_state_values_
handling. I would also like to update some of the existing tests with more validation steps. I can do these in a follow up PR.
sure, let's do that. A simple request for testing the actual command value without feedforward. (or is there another existing test, but I can't find it now).
@christophfroehlich , @saikishor , I updated the code per your feedback. Could you give it another look when you have the chance ? P.S. Additional tests have been added to #1538. |
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.
Thx for the latest added test
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
Thanks for the tests
Just a couple minor and good to be merged ;)
Co-authored-by: Sai Kishor Kothakota <[email protected]>
fcb41c9
cf8b96e
into
ros-controls:master
Thank you, @christophfroehlich and @saikishor for your review feedback. @christophfroehlich , ❤️ much appreciated for the changes you made to help merge this. |
Address #1270. The scope of the fix only covers single reference interface. The changes for two reference interfaces will be covered in different PR.
Testing of the code changes was done with ros-controls/ros2_control_demos#710.