-
Notifications
You must be signed in to change notification settings - Fork 310
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 equal and higher ctrl update rate #1070
Fix equal and higher ctrl update rate #1070
Conversation
a622517
to
936b602
Compare
…rates w.r.t controller manager
936b602
to
7da192b
Compare
7da192b
to
2ca3c7b
Compare
The failing test shown below is not related to the changes in this PR
|
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. @@ Coverage Diff @@
## master #1070 +/- ##
==========================================
- Coverage 34.61% 32.31% -2.31%
==========================================
Files 52 93 +41
Lines 2981 9865 +6884
Branches 1855 6651 +4796
==========================================
+ Hits 1032 3188 +2156
- Misses 310 783 +473
- Partials 1639 5894 +4255
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Do you think it is better to have a warning printed in case the controller's update_rate is higher than the CM's update_rate? |
Absolutely! Expectation management is important |
Done |
@bmagyar I'm not sure that my new commit has caused this. |
The spawner tests are sometimes flaky. I've restarted them. |
Perfect! Now they passed hahaha |
auto test_controller = std::make_shared<test_controller::TestController>(); | ||
|
||
auto last_internal_counter = 0u; | ||
for (unsigned int ctrl_update_rate : {100, 232, 400}) |
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.
I'll do a small refactor here tomorrow, otherwise we are good to go IMO
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.
Sure
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.
As the controller_update_rate <= cm_update_rate, LGTM
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.
Thank you!
(cherry picked from commit d39ddcd) # Conflicts: # controller_manager/src/controller_manager.cpp
This fixes the issue reported by @destogl over the slack. This also address the issue with controllers set to higher update rate than the controller manager