Fixed errors when creating a custom subscriber.#2727
Fixed errors when creating a custom subscriber.#2727bks-ol wants to merge 7 commits intoros2:rollingfrom
Conversation
5dbd654 to
07f410e
Compare
fujitatomoya
left a comment
There was a problem hiding this comment.
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 <bks-ol@mail.ru>
Signed-off-by: olesya <bks-ol@mail.ru>
Signed-off-by: olesya <bks-ol@mail.ru>
Signed-off-by: olesya <bks-ol@mail.ru>
34ce012 to
3013126
Compare
|
@fujitatomoya Hello! Everything is done! |
fujitatomoya
left a comment
There was a problem hiding this comment.
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 <Tomoya.Fujita@sony.com> Signed-off-by: olesya <66834330+bks-ol@users.noreply.github.com>
Signed-off-by: olesya <bks-ol@mail.ru>
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 <bks-ol@mail.ru>
|
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.