-
Notifications
You must be signed in to change notification settings - Fork 430
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 subscription.is_serialized() for callbacks with message info #1950
Fix subscription.is_serialized() for callbacks with message info #1950
Conversation
…ment Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
Yikes, we probably didn't notice because there wasn't a test. Can you add tests that exercise this? |
Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
I have added some tests for I would also like to have a test with a publisher and a subscription for each of the callbacks, and make sure the message arrives. |
Yeah, we typically have tests like that in |
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.
Looks good to me with green CI (I'd be sure to run CI with --packages-above rclcpp
)
windows issues are unrelated (happening in nightlies as well https://ci.ros2.org/view/nightly/job/nightly_win_rel/2329/msbuild/new/). |
…2#1950) * Fix subscription.is_serialized() for callbacks with message info argument Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> * Add tests + please linters Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
…2#1950) * Fix subscription.is_serialized() for callbacks with message info argument Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> * Add tests + please linters Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> Signed-off-by: roscan-tech <liwei4402@mail2.sysu.edu.cn>
…) (#2622) * Fix subscription.is_serialized() for callbacks with message info argument * Add tests + please linters Signed-off-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com> Signed-off-by: roscan-tech <liwei4402@mail2.sysu.edu.cn> Co-authored-by: Ivan Santiago Paunovic <ivanpauno@ekumenlabs.com>
I think this was broken when support for type adaption was added.
Currently if you create a serialized subscription with a callback taking both the message and the message info, the executor throws an exception the first time a message is dispatched.
This fixes the issue.