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 duplicate subscription created with wrong 'raw' attribute. #798

Merged
merged 1 commit into from
Oct 4, 2022

Conversation

achim-k
Copy link
Contributor

@achim-k achim-k commented Oct 4, 2022

Public API Changes
None

Description
This fixes an issue when there are more than one client that subscribes to the same topic with cbor-raw compression. When this happened, the rosbridge server would log an exception as e.g. the one below.

Exception calling subscribe callback: cannot serialize unknown object: std_msgs.msg.String(data='hello')

(the exception is more noticeable when the message is a point cloud 😉)

This patch makes sure that subscribers are created with matching raw attribute.

@achim-k achim-k merged commit 610d5e8 into ros2 Oct 4, 2022
@achim-k achim-k deleted the fix/multiple_raw_subscribers branch October 4, 2022 23:03
jihoonl pushed a commit to floatic-unicorn/rosbridge_suite that referenced this pull request Oct 6, 2022
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

2 participants