15 #ifndef RCLCPP__SUBSCRIPTION_FACTORY_HPP_ 16 #define RCLCPP__SUBSCRIPTION_FACTORY_HPP_ 25 #include "rosidl_typesupport_cpp/message_type_support.hpp" 70 typename CallbackMessageT =
79 CallbackT && callback,
87 any_subscription_callback.
set(std::forward<CallbackT>(callback));
91 [options, msg_mem_strat, any_subscription_callback](
102 *rosidl_typesupport_cpp::get_message_type_support_handle<MessageT>(),
105 any_subscription_callback,
111 sub->post_init_setup(node_base, qos, options);
123 #endif // RCLCPP__SUBSCRIPTION_FACTORY_HPP_ Default allocation strategy for messages received by subscriptions.
Definition: message_memory_strategy.hpp:40
std::shared_ptr< Allocator > get_allocator() const
Get the allocator, creating one if needed.
Definition: subscription_options.hpp:94
Encapsulation of Quality of Service settings.
Definition: qos.hpp:55
const SubscriptionFactoryFunction create_typed_subscription
Definition: subscription_factory.hpp:62
This header provides the get_node_base_interface() template function.
Definition: allocator_common.hpp:24
Subscription implementation, templated on the type of message this subscription receives.
Definition: subscription.hpp:67
Definition: any_subscription_callback.hpp:36
SubscriptionFactory create_subscription_factory(CallbackT &&callback, const rclcpp::SubscriptionOptionsWithAllocator< AllocatorT > &options, typename MessageMemoryStrategyT::SharedPtr msg_mem_strat)
Return a SubscriptionFactory setup to create a SubscriptionT<MessageT, AllocatorT>.
Definition: subscription_factory.hpp:78
Pure virtual interface class for the NodeBase part of the Node API.
Definition: node_base_interface.hpp:36
Factory containing a function used to create a Subscription<MessageT>.
Definition: subscription_factory.hpp:53
T dynamic_pointer_cast(T... args)
Set the data type used in the intra-process buffer as std::shared_ptr<MessageT>
Definition: subscription_base.hpp:54
void set(CallbackT callback)
Definition: any_subscription_callback.hpp:82