-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 deprecated subscription callbacks in tutorials #2079
Conversation
FYI, I believe |
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.
Also committed a couple of changes that were for a different deprecation in rosbag2_cpp::writer_interfaces::Writer
(see ros2/rosbag2#866).
source/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node.rst
Outdated
Show resolved
Hide resolved
source/Tutorials/Ros2bag/Recording-A-Bag-From-Your-Own-Node.rst
Outdated
Show resolved
Hide resolved
Namely, the `void shared_ptr<MsgT>` subscription callback has been deprecated. As such, snippets using that signature has been replaced with `void shared_ptr<const MsgT>` subscription callbacks. Signed-off-by: Abrar Rahman Protyasha <[email protected]>
Signed-off-by: Chris Lalancette <[email protected]>
21018ea
to
e2e1f54
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 would have thought there should be a clear preference to update things to the |
You're right. Not sure why I didn't just update to Except for the rosbag tutorial, where we want to be using a shared pointer to |
Namely, the
void (shared_ptr<MsgT>)
subscription callback hasbeen deprecated (see ros2/rclcpp#1713).
As such, snippets using that signature have been updated with the
void (shared_ptr<const MsgT>)
subscription callback.Signed-off-by: Abrar Rahman Protyasha [email protected]