@@ -53,11 +53,10 @@ class DynamicSubscription : public rclcpp::SubscriptionBase
5353 rosidl_message_type_support_t & type_support_handle,
5454 const std::string & topic_name,
5555 const rclcpp::QoS & qos,
56- // TODO(methylDragons): Eventually roll out an rclcpp::DynamicData that encompasses the serialization_support
57- // support and DynamicData, and pass that to the callback
58- std::function<void (
59- std::shared_ptr<rosidl_dynamic_typesupport_serialization_support_t >, std::shared_ptr<rosidl_dynamic_typesupport_dynamic_data_t >
60- )> callback,
56+ // TODO(methylDragons): Eventually roll out an rclcpp::DynamicMessage that encompasses the
57+ // serialization_support support and DynamicData, and pass that to the
58+ // callback
59+ std::function<void (std::shared_ptr<rosidl_dynamic_typesupport_dynamic_data_t >)> callback,
6160 const rclcpp::SubscriptionOptionsWithAllocator<AllocatorT> & options,
6261 bool use_take_dynamic_message = false )
6362 : SubscriptionBase(
@@ -77,7 +76,7 @@ class DynamicSubscription : public rclcpp::SubscriptionBase
7776 != rmw_dynamic_typesupport_c__identifier)
7877 {
7978 throw std::runtime_error (
80- " DynamicSubscription must use runtime type introspection type support!" );
79+ " DynamicSubscription must use dynamic type introspection type support!" );
8180 }
8281 }
8382
@@ -145,7 +144,7 @@ class DynamicSubscription : public rclcpp::SubscriptionBase
145144 void return_serialized_message (std::shared_ptr<rclcpp::SerializedMessage> & message) override ;
146145
147146
148- // RUNTIME TYPE ==================================================================================
147+ // DYNAMIC TYPE ==================================================================================
149148 // TODO(methylDragon): Reorder later
150149 RCLCPP_PUBLIC
151150 std::shared_ptr<rosidl_dynamic_typesupport_dynamic_type_t >
@@ -161,7 +160,6 @@ class DynamicSubscription : public rclcpp::SubscriptionBase
161160
162161 RCLCPP_PUBLIC
163162 void handle_dynamic_message (
164- const std::shared_ptr<rosidl_dynamic_typesupport_serialization_support_t > & serialization_support,
165163 const std::shared_ptr<rosidl_dynamic_typesupport_dynamic_data_t > & dyn_data,
166164 const rclcpp::MessageInfo & message_info
167165 ) override ;
@@ -171,10 +169,7 @@ class DynamicSubscription : public rclcpp::SubscriptionBase
171169 RCLCPP_DISABLE_COPY (DynamicSubscription)
172170
173171 rosidl_message_type_support_t & ts_;
174-
175- std::function<void (
176- std::shared_ptr<rosidl_dynamic_typesupport_serialization_support_t >, std::shared_ptr<rosidl_dynamic_typesupport_dynamic_data_t >
177- )> callback_;
172+ std::function<void (std::shared_ptr<rosidl_dynamic_typesupport_dynamic_data_t >)> callback_;
178173};
179174
180175} // namespace rclcpp
0 commit comments