rclcpp
master
C++ ROS Client Library API
|
Factory with functions used to create a MessageT specific PublisherT. More...
#include <publisher_factory.hpp>
Public Types | |
using | PublisherFactoryFunction = std::function< rclcpp::PublisherBase::SharedPtr(rclcpp::node_interfaces::NodeBaseInterface *node_base, const std::string &topic_name, const rcl_publisher_options_t &publisher_options)> |
Public Attributes | |
PublisherFactoryFunction | create_typed_publisher |
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.
using rclcpp::PublisherFactory::PublisherFactoryFunction = std::function< rclcpp::PublisherBase::SharedPtr( rclcpp::node_interfaces::NodeBaseInterface * node_base, const std::string & topic_name, const rcl_publisher_options_t & publisher_options)> |
PublisherFactoryFunction rclcpp::PublisherFactory::create_typed_publisher |