rclcpp
master
C++ ROS Client Library API
|
Go to the documentation of this file.
15 #ifndef RCLCPP__PUBLISHER_OPTIONS_HPP_
16 #define RCLCPP__PUBLISHER_OPTIONS_HPP_
64 template<
typename Allocator>
78 template<
typename MessageT>
84 using MessageAllocatorT =
typename AllocatorTraits::template rebind_alloc<MessageT>;
85 auto message_alloc = std::make_shared<MessageAllocatorT>(*this->
get_allocator().get());
86 result.
allocator = rclcpp::allocator::get_rcl_allocator<MessageT>(*message_alloc);
104 if (!this->allocator) {
105 return std::make_shared<Allocator>();
115 #endif // RCLCPP__PUBLISHER_OPTIONS_HPP_
rmw_publisher_options_t rmw_publisher_options
@ NodeDefault
Take intraprocess configuration from the node.
rmw_unique_network_flow_endpoints_requirement_t require_unique_network_flow_endpoints
rmw_qos_profile_t & get_rmw_qos_profile()
Return the rmw qos profile.
Non-templated part of PublisherOptionsWithAllocator<Allocator>.
Definition: publisher_options.hpp:37
rcl_publisher_options_t to_rcl_publisher_options(const rclcpp::QoS &qos) const
Convert this class, and a rclcpp::QoS, into an rcl_publisher_options_t.
Definition: publisher_options.hpp:80
Contains callbacks for various types of events a Publisher can receive from the middleware.
Definition: qos_event.hpp:53
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
Options that are passed in subscription/publisher constructor to specify QoSConfigurability.
Definition: qos_overriding_options.hpp:89
std::shared_ptr< rclcpp::CallbackGroup > callback_group
Callback group in which the waitable items from the publisher should be placed.
Definition: publisher_options.hpp:54
Encapsulation of Quality of Service settings.
Definition: qos.hpp:110
QosOverridingOptions qos_overriding_options
Definition: publisher_options.hpp:60
IntraProcessSetting use_intra_process_comm
Setting to explicitly set intraprocess communications.
Definition: publisher_options.hpp:40
IntraProcessSetting
Used as argument in create_publisher and create_subscriber.
Definition: intra_process_setting.hpp:22
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
std::shared_ptr< Allocator > allocator
Optional custom allocator.
Definition: publisher_options.hpp:68
Structure containing optional configuration for Publishers.
Definition: publisher_options.hpp:65
std::shared_ptr< rclcpp::detail::RMWImplementationSpecificPublisherPayload > rmw_implementation_payload
Optional RMW implementation specific payload to be used during creation of the publisher.
Definition: publisher_options.hpp:58
rmw_unique_network_flow_endpoints_requirement_t require_unique_network_flow_endpoints
Definition: publisher_options.hpp:50
enum RMW_PUBLIC_TYPE rmw_unique_network_flow_endpoints_requirement_t rmw_unique_network_flow_endpoints_requirement_t
PublisherOptionsWithAllocator(const PublisherOptionsBase &publisher_options_base)
Constructor using base class as input.
Definition: publisher_options.hpp:73
std::shared_ptr< Allocator > get_allocator() const
Get the allocator, creating one if needed.
Definition: publisher_options.hpp:102
rcl_allocator_t allocator
RMW_UNIQUE_NETWORK_FLOW_ENDPOINTS_NOT_REQUIRED
rcl_publisher_options_t rcl_publisher_get_default_options(void)