Skip to content

Commit

Permalink
fixing lifecycle subscription signatures
Browse files Browse the repository at this point in the history
Signed-off-by: William Woodall <[email protected]>
  • Loading branch information
wjwwood committed May 7, 2019
1 parent 136d5a5 commit d620145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions rclcpp_lifecycle/include/rclcpp_lifecycle/lifecycle_node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class LifecycleNode : public node_interfaces::LifecycleNodeInterface,
typename Alloc = std::allocator<void>,
typename SubscriptionT = rclcpp::Subscription<MessageT, Alloc>>
[[deprecated(
"use create_subscription(const std::string &, CallbackT, const rclcpp::QoS &, ...) instead"
"use create_subscription(const std::string &, const rclcpp::QoS &, CallbackT, ...) instead"
)]]
std::shared_ptr<SubscriptionT>
create_subscription(
Expand Down Expand Up @@ -262,14 +262,14 @@ class LifecycleNode : public node_interfaces::LifecycleNodeInterface,
typename Alloc = std::allocator<void>,
typename SubscriptionT = rclcpp::Subscription<MessageT, Alloc>>
[[deprecated(
"use create_subscription(const std::string &, CallbackT, const rclcpp::QoS &, ...) instead"
"use create_subscription(const std::string &, const rclcpp::QoS &, CallbackT, ...) instead"
)]]
std::shared_ptr<SubscriptionT>
create_subscription(
const std::string & topic_name,
size_t qos_history_depth,
CallbackT && callback,
rclcpp::callback_group::CallbackGroup::SharedPtr group = nullptr,
rclcpp::callback_group::CallbackGroup::SharedPtr group,
bool ignore_local_publications = false,
typename rclcpp::message_memory_strategy::MessageMemoryStrategy<
typename rclcpp::subscription_traits::has_message_type<CallbackT>::type, Alloc>::SharedPtr
Expand Down
2 changes: 1 addition & 1 deletion rclcpp_lifecycle/test/test_lifecycle_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ TEST_F(TestDefaultStateMachine, lifecycle_subscriber) {

auto cb = [](const std::shared_ptr<lifecycle_msgs::msg::State> msg) {(void) msg;};
auto lifecycle_sub =
test_node->create_subscription<lifecycle_msgs::msg::State>("~/empty", cb, 10);
test_node->create_subscription<lifecycle_msgs::msg::State>("~/empty", 10, cb);

SUCCEED();
}

0 comments on commit d620145

Please sign in to comment.