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

Set chained controller interfaces as available for activated controllers #1098

Conversation

saikishor
Copy link
Member

@saikishor saikishor commented Aug 10, 2023

This PR addresses the issue with the current list_hardware_interfaces service which lists the interfaces exposed by the chainable controllers as unavailable instead of available until they are in chained mode

Current behavior:

  • Configured chainable controller: Listed exported interfaces are unavailable and unclaimed
  • Active chainable controller(not in chained mode): Listed exported interfaces are unavailable and unclaimed
  • Active chainable controller(in chained mode): Listed exported interfaces are available and claimed

New behavior:

  • Configured chainable controller: Listed exported interfaces are unavailable and unclaimed
  • Active chainable controller(not in chained mode): Listed exported interfaces are available but unclaimed
  • Active chainable controller(in chained mode): Listed exported interfaces are available and claimed

@saikishor saikishor changed the title Set chained controller interfaces as available Set chained controller interfaces as available for activated controllers Aug 10, 2023
@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2023

Codecov Report

Merging #1098 (333e0bf) into master (3313796) will increase coverage by 0.14%.
Report is 3 commits behind head on master.
The diff coverage is 0.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1098      +/-   ##
==========================================
+ Coverage   47.65%   47.79%   +0.14%     
==========================================
  Files          40       40              
  Lines        3448     3450       +2     
  Branches     1867     1869       +2     
==========================================
+ Hits         1643     1649       +6     
+ Misses        480      457      -23     
- Partials     1325     1344      +19     
Flag Coverage Δ
unittests 47.79% <0.00%> (+0.14%) ⬆️

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

Files Coverage Δ
controller_manager/src/controller_manager.cpp 39.22% <0.00%> (+0.44%) ⬆️

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

LGTM as far as I understand the chainable controllers.

@mergify
Copy link
Contributor

mergify bot commented Aug 11, 2023

This pull request is in conflict. Could you fix it @saikishor?

@saikishor saikishor force-pushed the set_chained_controller_interfaces_as_available branch from 10bc21c to 00f29cc Compare August 11, 2023 12:43
destogl
destogl previously approved these changes Oct 15, 2023
Copy link
Contributor

mergify bot commented Dec 3, 2023

This pull request is in conflict. Could you fix it @saikishor?

@saikishor
Copy link
Member Author

@bmagyar I think the rebase I've done after the conflict has invalidated the review of @destogl and @christophfroehlich. In this case, do they have to review again? or what's the exact process to follow?

Thank you

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

LstillGTM, and please don't forget to update docs with details on that. E.g. here: https://control.ros.org/master/doc/ros2_control/controller_manager/doc/controller_chaining.html#debugging-outputs

@saikishor
Copy link
Member Author

still LGTM, and please don't forget to update docs with details on that. E.g. here: https://control.ros.org/master/doc/ros2_control/controller_manager/doc/controller_chaining.html#debugging-outputs

@christophfroehlich I've updated the docs now. Please review and let me know your opinion.

Thank you

Copy link
Contributor

@christophfroehlich christophfroehlich left a comment

Choose a reason for hiding this comment

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

Great!

destogl
destogl previously approved these changes Dec 17, 2023
@destogl destogl dismissed stale reviews from christophfroehlich and themself via 333e0bf December 17, 2023 14:09
@destogl destogl self-requested a review December 17, 2023 14:11
@destogl destogl merged commit b6f32c3 into ros-controls:master Dec 17, 2023
13 checks passed
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