|
rclcpp
master
C++ ROS Client Library API
|
#include <memory>#include <string>#include <utility>#include "rclcpp/node_interfaces/get_node_topics_interface.hpp"#include "rclcpp/node_interfaces/node_topics_interface.hpp"#include "rclcpp/subscription_factory.hpp"#include "rclcpp/subscription_options.hpp"#include "rclcpp/qos.hpp"#include "rmw/qos_profiles.h"

Go to the source code of this file.
Namespaces | |
| rclcpp | |
| This header provides the get_node_topics_interface() template function. | |
Functions | |
| template<typename MessageT , typename CallbackT , typename AllocatorT , typename CallbackMessageT , typename SubscriptionT = rclcpp::Subscription<CallbackMessageT, AllocatorT>> | |
| std::shared_ptr< SubscriptionT > | rclcpp::create_subscription (rclcpp::node_interfaces::NodeTopicsInterface *node_topics, const std::string &topic_name, CallbackT &&callback, const rmw_qos_profile_t &qos_profile, const SubscriptionEventCallbacks &event_callbacks, rclcpp::callback_group::CallbackGroup::SharedPtr group, bool ignore_local_publications, bool use_intra_process_comms, typename rclcpp::message_memory_strategy::MessageMemoryStrategy< CallbackMessageT, AllocatorT >::SharedPtr msg_mem_strat, typename std::shared_ptr< AllocatorT > allocator) |
| template<typename MessageT , typename CallbackT , typename AllocatorT = std::allocator<void>, typename CallbackMessageT = typename rclcpp::subscription_traits::has_message_type<CallbackT>::type, typename SubscriptionT = rclcpp::Subscription<CallbackMessageT, AllocatorT>, typename NodeT > | |
| std::shared_ptr< SubscriptionT > | rclcpp::create_subscription (NodeT &&node, const std::string &topic_name, const rclcpp::QoS &qos, CallbackT &&callback, const rclcpp::SubscriptionOptionsWithAllocator< AllocatorT > &options=(rclcpp::SubscriptionOptionsWithAllocator< AllocatorT >()), typename rclcpp::message_memory_strategy::MessageMemoryStrategy< CallbackMessageT, AllocatorT >::SharedPtr msg_mem_strat=nullptr) |
| Create and return a subscription of the given MessageT type. More... | |
1.8.13