Based on ROS2 documentation there is a third argument called an allocator that can be used when creatinga publisher. How can this allocator be used ? Does it allocate memory for the publisher ?
std::shared_ptr< PublisherT > rclcpp::node::Node::create_publisher ( const std::string & topic_name,
const rmw_qos_profile_t & qos_profile = rmw_qos_profile_default,
std::shared_ptr< Alloc > allocator = nullptr
)