|
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_base_interface() template function. | |
Functions | |
| 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 MessageMemoryStrategyT = rclcpp::message_memory_strategy::MessageMemoryStrategy< 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 MessageMemoryStrategyT::SharedPtr msg_mem_strat=(MessageMemoryStrategyT::create_default())) |
| Create and return a subscription of the given MessageT type. More... | |
1.8.13