Fix recursive naming of chainable controller interfaces - #3212
Open
vectorcrumb wants to merge 2 commits into
Open
Fix recursive naming of chainable controller interfaces#3212vectorcrumb wants to merge 2 commits into
vectorcrumb wants to merge 2 commits into
Conversation
When calling export_state_interfaces/export_reference_interfaces on a ChainableControllerInterface derived class, the controller name would get correctly prepended to the interface names. When calling those methods for a second (or more) time, the full name including the controller name would get prepended by the controller name. This would lead to interfaces like `my_controller/my_controller/s1`. This fix makes sure the reference/state interface name gets exported, rather than the entire interface name during calls to the export methods. It also includes a test for this specific case. Important to note that this issue only affects the interface from Kilted and before.
github-actions
Bot
requested review from
Maverobot,
christophfroehlich,
mhubii,
saikishor and
xguay
April 12, 2026 23:14
vectorcrumb
marked this pull request as draft
April 12, 2026 23:15
vectorcrumb
marked this pull request as ready for review
April 12, 2026 23:27
Contributor
|
This PR is stale because it has been open for 45 days with no activity. Please tag a maintainer for help on completing this PR, or close it if you think it has become obsolete. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
On releases targeting Kilted and before, when calling export_state_interfaces/export_reference_interfaces on a ChainableControllerInterface derived class, the controller name would get correctly prepended to the interface names. When calling those methods for a second (or more) time, the full name including the controller name would get prepended by the controller name. This would lead to interfaces like
my_controller/my_controller/s1.This fix makes sure the reference/state interface name gets exported, rather than the entire interface name during calls to the export methods. It also includes a test for this specific case.
Fixes #3211
Is this user-facing behavior change?
Did you use Generative AI?
Yes, this PR was aided by Claude Opus 4.6
Additional Information
This targets the older ChainableControllerInterface methods, from before Lyrical. Also, I'm not fully sure on the usefulness of the test, as this seems a very specific issue which wouldn't really get tested for (you wouldn't expect a feature to fail specifically by prepending its controller name constantly on its interface names)
TODOs
To send us a pull request, please:
colcon testandpre-commit run(requires you to install pre-commit bypip3 install pre-commit)