From 3061ec0ad58678359c2c241410f7a5d9fc24c65b Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Thu, 15 Oct 2015 11:37:28 -0700 Subject: [PATCH] Qualify template --- rclcpp/include/rclcpp/node_impl.hpp | 44 ++++++++++++++--------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/rclcpp/include/rclcpp/node_impl.hpp b/rclcpp/include/rclcpp/node_impl.hpp index 5f92369..f854ada 100644 --- a/rclcpp/include/rclcpp/node_impl.hpp +++ b/rclcpp/include/rclcpp/node_impl.hpp @@ -205,28 +205,6 @@ Node::group_in_node(callback_group::CallbackGroup::SharedPtr group) return group_belongs_to_this_node; } -template -typename rclcpp::subscription::Subscription::SharedPtr -Node::create_subscription( - const std::string & topic_name, - size_t qos_history_depth, - CallbackT callback, - rclcpp::callback_group::CallbackGroup::SharedPtr group, - bool ignore_local_publications, - typename rclcpp::message_memory_strategy::MessageMemoryStrategy::SharedPtr - msg_mem_strat) -{ - rmw_qos_profile_t qos = rmw_qos_profile_default; - qos.depth = qos_history_depth; - return this->create_subscription( - topic_name, - qos, - callback, - group, - ignore_local_publications, - msg_mem_strat); -} - template typename rclcpp::subscription::Subscription::SharedPtr Node::create_subscription( @@ -328,6 +306,28 @@ Node::create_subscription( return sub; } +template +typename rclcpp::subscription::Subscription::SharedPtr +Node::create_subscription( + const std::string & topic_name, + size_t qos_history_depth, + CallbackT callback, + rclcpp::callback_group::CallbackGroup::SharedPtr group, + bool ignore_local_publications, + typename rclcpp::message_memory_strategy::MessageMemoryStrategy::SharedPtr + msg_mem_strat) +{ + rmw_qos_profile_t qos = rmw_qos_profile_default; + qos.depth = qos_history_depth; + return this->create_subscription( + topic_name, + qos, + callback, + group, + ignore_local_publications, + msg_mem_strat); +} + rclcpp::timer::WallTimer::SharedPtr Node::create_wall_timer( std::chrono::nanoseconds period,