-
Notifications
You must be signed in to change notification settings - Fork 299
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
[Spawner] Add support for wildcard entries in the controller param files #1724
[Spawner] Add support for wildcard entries in the controller param files #1724
Conversation
…ced or non wildcard entry param file
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1724 +/- ##
=========================================
Coverage ? 87.33%
=========================================
Files ? 121
Lines ? 12140
Branches ? 1086
=========================================
Hits ? 10603
Misses ? 1148
Partials ? 389
Flags with carried forward coverage won't be shown. Click here to find out more.
|
I've added the reviewers manually, as the Reviewer lottery job is failing |
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!
@saikishor I am wondering though where would it make sense to showcase this feature? Demos? |
Yes @bmagyar ! It totally makes sense. |
@bmagyar I've created an issue to follow-up. I'll take care of it soon, can we get this merged in the meantime :) |
@bmagyar I've added an example in ros2_control_demos: ros-controls/ros2_control_demos#599 |
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.
Tested with ros-controls/ros2_control_demos#599
Thank you all! @bmagyar do you know yet if this change is planned to eventually be backported to Humble? |
@saikishor is this backportable? we haven't backported the params-file functionality?! |
@christophfroehlich the params-file is probably there in Humble. We can take a look at this once we are back from ROSCon. |
This PR aims to add support for the wildcard entries for the controller config files. This is very helpful, for instance, if we need to load the joint_state_broadcaster or any other controllers to different CM namespaces, we could reuse the configuration of the controllers or broadcaster by just having them with a wildcard. If not, we must generate multiple configuration files for each namespaced controller manager.
I've also added tests to test the same architecture. I've also made some tests with ros2_control_demos, and it works well.
Reference: https://docs.ros.org/en/humble/Tutorials/Intermediate/Launch/Using-ROS2-Launch-For-Large-Projects.html#using-wildcards-in-yaml-files
Earlier approach:
With this change, we can have one configuration as below and reuse it