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

Keep one callback group per channel in memory #92

Merged
merged 1 commit into from
Nov 30, 2022

Conversation

achim-k
Copy link
Collaborator

@achim-k achim-k commented Nov 30, 2022

Public-Facing Changes
None

Description
Previously, we created a callback group when a client subscribed to a topic and deleted the callback group again when the client unsubscribed. This caused some side effects however (see #84) as ROS2 apparently does not handle destruction of callback groups correctly. This PR ensures that callback groups stay alive for the lifetime of the node. Furthermore, we have one callback group per channel rather than one callback group for every subscription

@achim-k achim-k merged commit f06249d into main Nov 30, 2022
@achim-k achim-k deleted the achim/do_not_destroy_callback_groups branch November 30, 2022 19:42
achim-k added a commit that referenced this pull request Dec 11, 2022
…ed (#109)

**Public-Facing Changes**
None 

**Description**
Destruction of callback groups seems to have undesired side effects (see
ros2/rclcpp#2053) so we have to keep them as
class members. In #92 we did that already for Subscriptions, but we
forgot to do that also for Publications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants