15 #ifndef RCLCPP__PUBLISHER_FACTORY_HPP_ 16 #define RCLCPP__PUBLISHER_FACTORY_HPP_ 24 #include "rosidl_typesupport_cpp/message_type_support.hpp" 64 template<
typename MessageT,
typename AllocatorT,
typename PublisherT>
76 auto publisher = std::make_shared<PublisherT>(node_base, topic_name, qos, options);
80 publisher->post_init_setup(node_base, topic_name, qos, options);
91 #endif // RCLCPP__PUBLISHER_FACTORY_HPP_
Encapsulation of Quality of Service settings.
Definition: qos.hpp:55
PublisherFactory create_publisher_factory(const rclcpp::PublisherOptionsWithAllocator< AllocatorT > &options)
Return a PublisherFactory with functions setup for creating a PublisherT<MessageT, AllocatorT>.
Definition: publisher_factory.hpp:66
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
Factory with functions used to create a MessageT specific PublisherT.
Definition: publisher_factory.hpp:50
Pure virtual interface class for the NodeBase part of the Node API.
Definition: node_base_interface.hpp:36
const PublisherFactoryFunction create_typed_publisher
Definition: publisher_factory.hpp:60
Set the data type used in the intra-process buffer as std::shared_ptr<MessageT>