ROS 2 rclcpp + rcl - rolling  rolling-a919a6e5
ROS 2 C++ Client Library with ROS Client Library
Public Types | Public Attributes | List of all members
rclcpp::PublisherFactory Struct Reference

Factory with functions used to create a MessageT specific PublisherT. More...

#include <rclcpp/publisher_factory.hpp>

Public Types

using PublisherFactoryFunction = std::function< rclcpp::PublisherBase::SharedPtr(rclcpp::node_interfaces::NodeBaseInterface *node_base, const std::string &topic_name, const rclcpp::QoS &qos)>
 

Public Attributes

const PublisherFactoryFunction create_typed_publisher
 

Detailed Description

Factory with functions used to create a MessageT specific PublisherT.

This factory class is used to encapsulate the template generated functions which are used during the creation of a Message type specific publisher within a non-templated class.

It is created using the create_publisher_factory function, which is usually called from a templated "create_publisher" method on the Node class, and is passed to the non-templated "create_publisher" method on the NodeTopics class where it is used to create and setup the Publisher.

It also handles the two step construction of Publishers, first calling the constructor and then the post_init_setup() method.

Definition at line 50 of file publisher_factory.hpp.


The documentation for this struct was generated from the following file: