ROS 2 rclcpp + rcl - humble  humble
ROS 2 C++ Client Library with ROS Client Library
Public Member Functions | Public Attributes | List of all members
rclcpp::SubscriptionOptionsWithAllocator< Allocator > Struct Template Reference

Structure containing optional configuration for Subscriptions. More...

#include <rclcpp/subscription_options.hpp>

Inheritance diagram for rclcpp::SubscriptionOptionsWithAllocator< Allocator >:
Inheritance graph
[legend]
Collaboration diagram for rclcpp::SubscriptionOptionsWithAllocator< Allocator >:
Collaboration graph
[legend]

Public Member Functions

 SubscriptionOptionsWithAllocator (const SubscriptionOptionsBase &subscription_options_base)
 Constructor using base class as input.
 
template<typename MessageT >
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. More...
 
std::shared_ptr< Allocator > get_allocator () const
 

Public Attributes

std::shared_ptr< Allocator > allocator = nullptr
 Optional custom allocator.
 
- Public Attributes inherited from rclcpp::SubscriptionOptionsBase
SubscriptionEventCallbacks event_callbacks
 Callbacks for events related to this subscription.
 
bool use_default_callbacks = true
 Whether or not to use default callbacks when user doesn't supply any in event_callbacks.
 
bool ignore_local_publications = false
 True to ignore local publications.
 
rmw_unique_network_flow_endpoints_requirement_t require_unique_network_flow_endpoints
 
rclcpp::CallbackGroup::SharedPtr callback_group = nullptr
 The callback group for this subscription. NULL to use the default callback group.
 
IntraProcessSetting use_intra_process_comm = IntraProcessSetting::NodeDefault
 Setting to explicitly set intraprocess communications.
 
IntraProcessBufferType intra_process_buffer_type = IntraProcessBufferType::CallbackDefault
 Setting the data-type stored in the intraprocess buffer.
 
std::shared_ptr< rclcpp::detail::RMWImplementationSpecificSubscriptionPayloadrmw_implementation_payload = nullptr
 Optional RMW implementation specific payload to be used during creation of the subscription.
 
TopicStatisticsOptions topic_stats_options
 
QosOverridingOptions qos_overriding_options
 
ContentFilterOptions content_filter_options
 

Detailed Description

template<typename Allocator>
struct rclcpp::SubscriptionOptionsWithAllocator< Allocator >

Structure containing optional configuration for Subscriptions.

Definition at line 91 of file subscription_options.hpp.

Member Function Documentation

◆ to_rcl_subscription_options()

template<typename Allocator >
template<typename MessageT >
rcl_subscription_options_t rclcpp::SubscriptionOptionsWithAllocator< Allocator >::to_rcl_subscription_options ( const rclcpp::QoS qos) const
inline

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