From 7bd8f9cf768b27ca2750776df01d56318820104b Mon Sep 17 00:00:00 2001 From: Esteve Fernandez Date: Thu, 26 Mar 2015 10:40:25 -0700 Subject: [PATCH] Use new type support infrastructure --- rclcpp/include/rclcpp/node_impl.hpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/rclcpp/include/rclcpp/node_impl.hpp b/rclcpp/include/rclcpp/node_impl.hpp index f1c09456ee..76b494fff5 100644 --- a/rclcpp/include/rclcpp/node_impl.hpp +++ b/rclcpp/include/rclcpp/node_impl.hpp @@ -20,10 +20,8 @@ #include #include -#include - -#include -#include +#include +#include #include @@ -65,8 +63,8 @@ template publisher::Publisher::SharedPtr Node::create_publisher(std::string topic_name, size_t queue_size) { - using rmw::get_type_support_handle; - auto type_support_handle = get_type_support_handle(); + using rosidl_generator_cpp::get_message_type_support_handle; + auto type_support_handle = get_message_type_support_handle(); rmw_publisher_t * publisher_handle = rmw_create_publisher( node_handle_, type_support_handle, topic_name.c_str(), queue_size); @@ -96,8 +94,8 @@ Node::create_subscription( std::function &)> callback, rclcpp::callback_group::CallbackGroup::SharedPtr group) { - using rmw::get_type_support_handle; - auto type_support_handle = get_type_support_handle(); + using rosidl_generator_cpp::get_message_type_support_handle; + auto type_support_handle = get_message_type_support_handle(); rmw_subscription_t * subscriber_handle = rmw_create_subscription( node_handle_, type_support_handle, topic_name.c_str(), queue_size);