Template Class AnySubscriptionCallback
Defined in File any_subscription_callback.hpp
Nested Relationships
Nested Types
Class Documentation
-
template<typename MessageT, typename AllocatorT = std::allocator<void>>
class AnySubscriptionCallback Public Functions
-
inline explicit AnySubscriptionCallback(const AllocatorT &allocator = AllocatorT())
-
AnySubscriptionCallback(const AnySubscriptionCallback&) = default
-
template<typename CallbackT>
inline AnySubscriptionCallback<MessageT, AllocatorT> set(CallbackT callback) Generic function for setting the callback.
There are specializations that overload this in order to deprecate some callback signatures, and also to fix ambiguity between shared_ptr and unique_ptr callback signatures when using them with lambda functions.
Function for shared_ptr to non-const MessageT, which is deprecated.
Function for shared_ptr to non-const MessageT with MessageInfo, which is deprecated.
-
inline std::unique_ptr<SubscribedType, SubscribedTypeDeleter> convert_ros_message_to_custom_type_unique_ptr(const ROSMessageType &msg)
-
inline std::unique_ptr<ROSMessageType, ROSMessageTypeDeleter> convert_custom_type_to_ros_message_unique_ptr(const SubscribedType &msg)
-
inline void dispatch_intra_process(std::unique_ptr<SubscribedType, SubscribedTypeDeleter> message, const rclcpp::MessageInfo &message_info)
-
inline constexpr bool is_serialized_message_callback() const
-
inline void register_callback_for_tracing()
-
inline HelperT::variant_type &get_variant()
-
inline const HelperT::variant_type &get_variant() const
-
inline explicit AnySubscriptionCallback(const AllocatorT &allocator = AllocatorT())