fix the return type of create_subscription (#290)

This commit is contained in:
William Woodall 2016-12-09 22:25:09 -08:00 committed by GitHub
parent 734ac278db
commit e2f53b09b4
2 changed files with 4 additions and 4 deletions

View file

@ -152,7 +152,7 @@ public:
typename CallbackT,
typename Alloc = std::allocator<void>,
typename SubscriptionT = rclcpp::subscription::Subscription<MessageT, Alloc>>
typename rclcpp::subscription::Subscription<MessageT, Alloc>::SharedPtr
std::shared_ptr<SubscriptionT>
create_subscription(
const std::string & topic_name,
CallbackT && callback,
@ -182,7 +182,7 @@ public:
typename CallbackT,
typename Alloc = std::allocator<void>,
typename SubscriptionT = rclcpp::subscription::Subscription<MessageT, Alloc>>
typename rclcpp::subscription::Subscription<MessageT, Alloc>::SharedPtr
std::shared_ptr<SubscriptionT>
create_subscription(
const std::string & topic_name,
size_t qos_history_depth,

View file

@ -84,7 +84,7 @@ Node::create_publisher(
}
template<typename MessageT, typename CallbackT, typename Alloc, typename SubscriptionT>
typename rclcpp::subscription::Subscription<MessageT, Alloc>::SharedPtr
std::shared_ptr<SubscriptionT>
Node::create_subscription(
const std::string & topic_name,
CallbackT && callback,
@ -117,7 +117,7 @@ Node::create_subscription(
}
template<typename MessageT, typename CallbackT, typename Alloc, typename SubscriptionT>
typename rclcpp::subscription::Subscription<MessageT, Alloc>::SharedPtr
std::shared_ptr<SubscriptionT>
Node::create_subscription(
const std::string & topic_name,
size_t qos_history_depth,