rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
16 #ifndef RCLCPP__GENERIC_PUBLISHER_HPP_
17 #define RCLCPP__GENERIC_PUBLISHER_HPP_
22 #include "rcpputils/shared_library.hpp"
68 template<
typename AllocatorT = std::allocator<
void>>
88 RCL_PUBLISHER_OFFERED_DEADLINE_MISSED);
93 RCL_PUBLISHER_LIVELINESS_LOST);
98 RCL_PUBLISHER_OFFERED_INCOMPATIBLE_QOS);
106 RCL_PUBLISHER_OFFERED_INCOMPATIBLE_QOS);
127 #endif // RCLCPP__GENERIC_PUBLISHER_HPP_
void default_incompatible_qos_callback(QOSOfferedIncompatibleQoSInfo &info) const
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
#define RCLCPP_PUBLIC
Definition: visibility_control.hpp:50
const rosidl_message_type_support_t * get_typesupport_handle(const std::string &type, const std::string &typesupport_identifier, rcpputils::SharedLibrary &library)
Extract the type support handle from the library.
Pure virtual interface class for the NodeBase part of the Node API.
Definition: node_base_interface.hpp:36
Encapsulation of Quality of Service settings.
Definition: qos.hpp:110
#define RCLCPP_SMART_PTR_DEFINITIONS(...)
Definition: macros.hpp:36
virtual ~GenericPublisher()=default
Definition: publisher_base.hpp:56
Definition: qos_event.hpp:69
void add_event_handler(const EventCallbackT &callback, const rcl_publisher_event_type_t event_type)
Definition: publisher_base.hpp:209
bool use_default_callbacks
Whether or not to use default callbacks when user doesn't supply any in event_callbacks.
Definition: publisher_options.hpp:46
PublisherEventCallbacks event_callbacks
Callbacks for various events related to publishers.
Definition: publisher_options.hpp:43
Structure containing optional configuration for Publishers.
Definition: publisher_options.hpp:65
GenericPublisher(rclcpp::node_interfaces::NodeBaseInterface *node_base, std::shared_ptr< rcpputils::SharedLibrary > ts_lib, const std::string &topic_name, const std::string &topic_type, const rclcpp::QoS &qos, const rclcpp::PublisherOptionsWithAllocator< AllocatorT > &options)
Constructor.
Definition: generic_publisher.hpp:69
void publish(const rclcpp::SerializedMessage &message)
Publish a rclcpp::SerializedMessage.
Object oriented version of rcl_serialized_message_t with destructor to avoid memory leaks.
Definition: serialized_message.hpp:27
Publisher for serialized messages whose type is not known at compile time.
Definition: generic_publisher.hpp:44