From e2f53b09b4801b50c7e2ae8745ffb38758688e18 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Fri, 9 Dec 2016 22:25:09 -0800 Subject: [PATCH] fix the return type of create_subscription (#290) --- rclcpp/include/rclcpp/node.hpp | 4 ++-- rclcpp/include/rclcpp/node_impl.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rclcpp/include/rclcpp/node.hpp b/rclcpp/include/rclcpp/node.hpp index 42f24eb..1fc8d8f 100644 --- a/rclcpp/include/rclcpp/node.hpp +++ b/rclcpp/include/rclcpp/node.hpp @@ -152,7 +152,7 @@ public: typename CallbackT, typename Alloc = std::allocator, typename SubscriptionT = rclcpp::subscription::Subscription> - typename rclcpp::subscription::Subscription::SharedPtr + std::shared_ptr create_subscription( const std::string & topic_name, CallbackT && callback, @@ -182,7 +182,7 @@ public: typename CallbackT, typename Alloc = std::allocator, typename SubscriptionT = rclcpp::subscription::Subscription> - typename rclcpp::subscription::Subscription::SharedPtr + std::shared_ptr create_subscription( const std::string & topic_name, size_t qos_history_depth, diff --git a/rclcpp/include/rclcpp/node_impl.hpp b/rclcpp/include/rclcpp/node_impl.hpp index b561b4b..b249bc3 100644 --- a/rclcpp/include/rclcpp/node_impl.hpp +++ b/rclcpp/include/rclcpp/node_impl.hpp @@ -84,7 +84,7 @@ Node::create_publisher( } template -typename rclcpp::subscription::Subscription::SharedPtr +std::shared_ptr Node::create_subscription( const std::string & topic_name, CallbackT && callback, @@ -117,7 +117,7 @@ Node::create_subscription( } template -typename rclcpp::subscription::Subscription::SharedPtr +std::shared_ptr Node::create_subscription( const std::string & topic_name, size_t qos_history_depth,