-
Notifications
You must be signed in to change notification settings - Fork 448
Fixed errors when creating a custom subscriber. #2727
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
base: rolling
Are you sure you want to change the base?
Conversation
5dbd654
to
07f410e
Compare
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.
i think that allowing the user application to create the custom subscription inherited from rclcpp::Subscriber
would be nice.
but this PR targets to humble
, and there are many test failures.
can you address that retargeting this PR against rolling
that is the main development branch and all test failures?
note that, since this is breaking ABI change, we cannot backport this to already released distros that are jazzy and humble.
No, it doesn't break the API because there are template parameters in the function signature. There are no parameters in the internal call stack. Please take a look:
|
@bks-ol ah i see, this does not change templated parameter, since it is already there.
but this is still what we need to do to proceed this PR. |
68f5ecc
to
ff1cf21
Compare
I have fixed the errors and would like to get your feedback. I can make another pull request to rolling later, but for now I need a merge with humble, okay? :) |
I do not think so 😓 usually we fix the problem in rolling, and then if that is ABI/API compatible (it does not break the user space), we can work on the backport after soak time... |
Yeah, we need to get it into |
ff1cf21
to
34ce012
Compare
@bks-ol Out of curiosity, why do you need to inherit from rclcpp::Subscription in the first place ? |
Signed-off-by: olesya <[email protected]>
Signed-off-by: olesya <[email protected]>
Signed-off-by: olesya <[email protected]>
Signed-off-by: olesya <[email protected]>
34ce012
to
3013126
Compare
@fujitatomoya Hello! Everything is done! |
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.
lgtm with a couple of minor comments.
@mjcarroll @jmachowinski @alsora either of you, can you take a look? |
@bks-ol thanks for the patience and effort, appreciate it. let's wait for the 2nd review for this. |
Pulls: #2727 |
Co-authored-by: Tomoya Fujita <[email protected]> Signed-off-by: olesya <[email protected]>
Signed-off-by: olesya <[email protected]>
c6bd2a2
to
26923f5
Compare
Let's continue! |
@fujitatomoya Hello! :) |
@bks-ol someone else needs to review this, we are pretty much occupied for next distro release for now. |
Signed-off-by: olesya <[email protected]>
Thanks for the PR @bks-ol. I've recently run into this limitation also when trying to create a derived Subscription class in order to add opentelemetry instrumentation. The fix lgtm with just a few ci issues to address. |
It was impossible to create a custom subscriber inherited from rclcpp::Subscriber, I fixed this bug and added a test to check correctness.