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

Fixes the issue with individual controller's update rate #1082

Merged

Conversation

saikishor
Copy link
Member

This PR addresses the issue of the wong update rate of the individual controller's update rate: #872

Here we will add a test to reproduce the issue, then add a proper fix.

@saikishor saikishor changed the title added test for the controller's update rate check Fixes the issue with individual controller's update rate Jul 19, 2023
@bmagyar
Copy link
Member

bmagyar commented Jul 24, 2023

Are you planning to move to step # 2? ;)

@saikishor
Copy link
Member Author

Are you planning to move to step # 2? ;)

Hello @bmagyar!

Yes, I've worked on it a bit. This weekend I was in the mountains and just arrived back this evening. I'll try to get something done this week. The problem is I'm trying to figure out a way to achieve the same without breaking ABI, and this is a bit challenging.😅

@codecov-commenter
Copy link

codecov-commenter commented Jul 25, 2023

Codecov Report

Merging #1082 (750a2df) into master (925f5f3) will decrease coverage by 2.16%.
Report is 503 commits behind head on master.
The diff coverage is 34.92%.

❗ 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    #1082      +/-   ##
==========================================
- Coverage   34.61%   32.46%   -2.16%     
==========================================
  Files          52       94      +42     
  Lines        2981     9986    +7005     
  Branches     1855     6724    +4869     
==========================================
+ Hits         1032     3242    +2210     
- Misses        310      790     +480     
- Partials     1639     5954    +4315     
Flag Coverage Δ
unittests 32.46% <34.92%> (-2.16%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
controller_manager/src/controller_manager.cpp 38.08% <ø> (-1.63%) ⬇️
controller_manager/src/ros2_control_node.cpp 0.00% <0.00%> (ø)
..._interface/include/hardware_interface/actuator.hpp 100.00% <ø> (ø)
...ce/include/hardware_interface/async_components.hpp 0.00% <0.00%> (ø)
...re_interface/include/hardware_interface/sensor.hpp 100.00% <ø> (ø)
...re_interface/include/hardware_interface/system.hpp 100.00% <ø> (ø)
hardware_interface/src/resource_manager.cpp 46.76% <ø> (-6.87%) ⬇️
hardware_interface/src/sensor.cpp 50.52% <ø> (ø)
hardware_interface/src/system.cpp 55.45% <ø> (ø)
...rface/test/mock_components/test_generic_system.cpp 9.42% <ø> (ø)
... and 70 more

... and 20 files with indirect coverage changes

@saikishor saikishor force-pushed the fix_wrong_controller_update_rate branch from 925b09a to 31f4f14 Compare July 25, 2023 21:36
@saikishor saikishor marked this pull request as ready for review July 25, 2023 21:48
bmagyar
bmagyar previously approved these changes Jul 31, 2023
Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good to me apart from the question

Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thanks!

@destogl destogl merged commit ad70c9a into ros-controls:master Aug 7, 2023
17 checks passed
@bmagyar
Copy link
Member

bmagyar commented Aug 7, 2023

@Mergifyio backport humble

@mergify
Copy link
Contributor

mergify bot commented Aug 7, 2023

backport humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Aug 7, 2023
* added parameterized test for the controller's update rate check
* added warning for the update rate to be a perfect factor
* fix the issue with the period when the controller update rate is higher than the controller manager

(cherry picked from commit ad70c9a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants