rclcpp  master
C++ ROS Client Library API
Namespaces | Functions
create_subscription.hpp File Reference
#include <memory>
#include <string>
#include <utility>
#include "rclcpp/node_interfaces/node_topics_interface.hpp"
#include "rclcpp/subscription_factory.hpp"
#include "rmw/qos_profiles.h"

Go to the source code of this file.

Namespaces

 rclcpp
 

Functions

template<typename MessageT , typename CallbackT , typename AllocatorT , typename SubscriptionT >
rclcpp::Subscription< MessageT, AllocatorT >::SharedPtr rclcpp::create_subscription (rclcpp::node_interfaces::NodeTopicsInterface *node_topics, const std::string &topic_name, CallbackT &&callback, const rmw_qos_profile_t &qos_profile, rclcpp::callback_group::CallbackGroup::SharedPtr group, bool ignore_local_publications, bool use_intra_process_comms, typename rclcpp::message_memory_strategy::MessageMemoryStrategy< MessageT, AllocatorT >::SharedPtr msg_mem_strat, typename std::shared_ptr< AllocatorT > allocator)