Small Feature request
Remove asymmetry in subscribing/publishing to serialized message
Current behavior
I can subscribe to a serialized message directly by calling create_subscription with a callback of the form
[](std::shared_ptr<rcutils_char_array_t> msg) { ... }
However, I call publish handing in a raw pointer:
|
publish(const rcl_serialized_message_t * serialized_msg) |
Improved behavior
I can call publish also by handing in a shared_ptr of a serialized message.
Small Feature request
Remove asymmetry in subscribing/publishing to serialized message
Current behavior
I can subscribe to a serialized message directly by calling
create_subscriptionwith a callback of the formHowever, I call publish handing in a raw pointer:
rclcpp/rclcpp/include/rclcpp/publisher.hpp
Line 280 in 6b34bcc
Improved behavior
I can call publish also by handing in a
shared_ptrof a serialized message.