Template Function rclcpp::detail::create_publisher

Function Documentation

template<typename MessageT, typename AllocatorT = std::allocator<void>, typename PublisherT = rclcpp::Publisher<MessageT, AllocatorT>, typename NodeParametersT, typename NodeTopicsT>
std::shared_ptr<PublisherT> rclcpp::detail::create_publisher(NodeParametersT &node_parameters, NodeTopicsT &node_topics, const std::string &topic_name, const rclcpp::QoS &qos, const rclcpp::PublisherOptionsWithAllocator<AllocatorT> &options = (rclcpp::PublisherOptionsWithAllocator<AllocatorT>()))

Create and return a publisher of the given MessageT type.