Template Function rclcpp::create_publisher(rclcpp::node_interfaces::NodeParametersInterface::SharedPtr&, rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr&, const std::string&, const rclcpp::QoS&, const rclcpp::PublisherOptionsWithAllocator<AllocatorT>&)
Defined in File create_publisher.hpp
Function Documentation
-
template<typename MessageT, typename AllocatorT = std::allocator<void>, typename PublisherT = rclcpp::Publisher<MessageT, AllocatorT>>
std::shared_ptr<PublisherT> rclcpp::create_publisher(rclcpp::node_interfaces::NodeParametersInterface::SharedPtr &node_parameters, rclcpp::node_interfaces::NodeTopicsInterface::SharedPtr &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.