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

Fix multiple calls to export reference interfaces #1108

Conversation

saikishor
Copy link
Member

Source: ros2_control Working Group Meeting Notes

[Manuel/Denis] Chainable controllers: how to handle export of reference interfaces, on_export_reference_interfaces() is called through services -> multiple calls -> multiple CommandInterfaces are created and old ones are invalidated.
Example: admittance_controller CommandInterfaces of other controller can be invalidated by services call.

This PR addresses it by using similar information stored in the resource manager

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.

oh this is quite elegant!
thank you

@bmagyar bmagyar added the backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble. label Sep 16, 2023
@bmagyar bmagyar merged commit af10525 into ros-controls:master Sep 16, 2023
18 checks passed
mergify bot pushed a commit that referenced this pull request Sep 16, 2023
(cherry picked from commit af10525)

# Conflicts:
#	controller_manager/test/test_controller_manager_srvs.cpp
destogl added a commit that referenced this pull request Sep 21, 2023
…1114)

* Fix multiple calls to export reference interfaces (#1108)

(cherry picked from commit af10525)

# Conflicts:
#	controller_manager/test/test_controller_manager_srvs.cpp

* Apply suggestions from code review

Co-authored-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>

---------

Co-authored-by: Sai Kishor Kothakota <sai.kishor@pal-robotics.com>
Co-authored-by: Dr. Denis <denis@stoglrobotics.de>
@saikishor saikishor deleted the fix_multiple_calls_to_export_reference_interfaces branch August 17, 2024 08:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-humble This label should be used by maintaines only! Label triggers PR backport to ROS2 humble.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants