Fix deprecated subscription callbacks in tutorials#2079
Conversation
|
FYI, I believe |
There was a problem hiding this comment.
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 <aprotyas@u.rochester.edu>
Signed-off-by: Chris Lalancette <clalancette@openrobotics.org>
21018ea to
e2e1f54
Compare
|
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 aprotyas@u.rochester.edu