15 #ifndef RCLCPP__SUBSCRIPTION_OPTIONS_HPP_ 16 #define RCLCPP__SUBSCRIPTION_OPTIONS_HPP_ 45 template<
typename Allocator>
60 template<
typename MessageT>
66 using MessageAllocatorT =
typename AllocatorTraits::template rebind_alloc<MessageT>;
67 auto message_alloc = std::make_shared<MessageAllocatorT>(*allocator.
get());
68 result.
allocator = allocator::get_rcl_allocator<MessageT>(*message_alloc);
79 #endif // RCLCPP__SUBSCRIPTION_OPTIONS_HPP_
Non-template base class for subscription options.
Definition: subscription_options.hpp:32
Encapsulation of Quality of Service settings.
Definition: qos.hpp:55
SubscriptionEventCallbacks event_callbacks
Callbacks for events related to this subscription.
Definition: subscription_options.hpp:35
IntraProcessSetting
Used as argument in create_publisher and create_subscriber.
Definition: intra_process_setting.hpp:22
rmw_qos_profile_t & get_rmw_qos_profile()
Return the rmw qos profile.
This header provides the get_node_topics_interface() template function.
Definition: allocator_common.hpp:24
Structure containing optional configuration for Subscriptions.
Definition: subscription_options.hpp:46
rcl_subscription_options_t to_rcl_subscription_options(const rclcpp::QoS &qos) const
Convert this class, with a rclcpp::QoS, into an rcl_subscription_options_t.
Definition: subscription_options.hpp:62
rclcpp::callback_group::CallbackGroup::SharedPtr callback_group
The callback group for this subscription. NULL to use the default callback group. ...
Definition: subscription_options.hpp:39
bool ignore_local_publications
IntraProcessSetting use_intra_process_comm
Setting to explicitly set intraprocess communications.
Definition: subscription_options.hpp:41
rcl_allocator_t allocator
Contains callbacks for non-message events that a Subscription can receive from the middleware...
Definition: qos_event.hpp:49
SubscriptionOptionsWithAllocator(const SubscriptionOptionsBase &subscription_options_base)
Constructor using base class as input.
Definition: subscription_options.hpp:54
Take intraprocess configuration from the node.
bool ignore_local_publications
True to ignore local publications.
Definition: subscription_options.hpp:37