Fix subscription instrumentation for ConstSharedPtr[WithInfo]Callback#1872
Merged
clalancette merged 1 commit intoros2:foxyfrom Jan 31, 2022
Conversation
Signed-off-by: Christophe Bedard <bedard.christophe@gmail.com>
Member
Author
clalancette
reviewed
Jan 20, 2022
Contributor
clalancette
left a comment
There was a problem hiding this comment.
Just so I'm clear about this; this is only a problem in Foxy, correct? Because Galactic and Rolling use the std::visit pattern, they don't have this issue?
Member
Author
|
Exactly! It's certainly a more foolproof way to do this. |
Contributor
Perfect, thanks for clarifying. |
clalancette
approved these changes
Jan 20, 2022
Contributor
clalancette
left a comment
There was a problem hiding this comment.
Looks good to me with green CI.
Member
Author
|
CMake warnings on Windows look unrelated. |
Contributor
Yeah, I'm pretty sure those are well-known on Foxy. @jacobperron OK to merge this one? |
fujitatomoya
approved these changes
Jan 21, 2022
Collaborator
There was a problem hiding this comment.
this makes sense to me. i do not think https://ci.ros2.org/job/ci_windows/16303/cmake/new/ is unrelated to this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Subscription callbacks of types
ConstSharedPtrCallbackandConstSharedPtrWithInfoCallbackwere not getting registered.See: https://gitlab.com/ros-tracing/tracetools_analysis/-/issues/47#note_817008890
Switching to something like this (in
galactic) would be better, but the change would be less minimal:rclcpp/rclcpp/include/rclcpp/any_subscription_callback.hpp
Lines 372 to 384 in 468cbab
Signed-off-by: Christophe Bedard bedard.christophe@gmail.com