@@ -95,39 +95,6 @@ class PointCloudTransportLoader
9595 point_cloud_transport::SubLoaderPtr sub_loader_;
9696};
9797
98- // / \brief Advertise every available transport on pointcloud topics, free function version.
99- // / \param node The ROS node to use for any ROS operations
100- // / \param base_topic The base topic for the publisher
101- // / \param custom_qos The QoS profile to use for the underlying publisher(s)
102- // / \param options The publisher options to use for the underlying publisher(s)
103- // / \return The advertised publisher
104- [[deprecated("Use create_publisher(rclcpp::node_interfaces...) instead")]]
105- POINT_CLOUD_TRANSPORT_PUBLIC
106- Publisher create_publisher (
107- std::shared_ptr<rclcpp::Node> node,
108- const std::string & base_topic,
109- rmw_qos_profile_t custom_qos = rmw_qos_profile_default,
110- const rclcpp::PublisherOptions & options = rclcpp::PublisherOptions());
111-
112- // / \brief Advertise every available transport on pointcloud topics, free function version.
113- // / \param node_interfaces the ROS node interfaces required for core node functionality, including
114- // / NodeBaseInterface, NodeParametersInterface, NodeTopicsInterface, and NodeLoggingInterface.
115- // / \param base_topic The base topic for the publisher
116- // / \param custom_qos The QoS profile to use for the underlying publisher(s)
117- // / \param options The publisher options to use for the underlying publisher(s)
118- // / \return The advertised publisher
119- [[deprecated("Use create_publisher(rclcpp::node_interfaces..., rclcpp::QoS, ...) instead")]]
120- POINT_CLOUD_TRANSPORT_PUBLIC
121- Publisher create_publisher (
122- std::shared_ptr<rclcpp::node_interfaces::NodeInterfaces<
123- rclcpp::node_interfaces::NodeBaseInterface,
124- rclcpp::node_interfaces::NodeParametersInterface,
125- rclcpp::node_interfaces::NodeTopicsInterface,
126- rclcpp::node_interfaces::NodeLoggingInterface>> & node_interfaces,
127- const std::string & base_topic,
128- rmw_qos_profile_t custom_qos = rmw_qos_profile_default,
129- const rclcpp::PublisherOptions & options = rclcpp::PublisherOptions());
130-
13198// / \brief Advertise every available transport on pointcloud topics, free function version.
13299// / \param node_interfaces the ROS node interfaces required for core node functionality, including
133100// / NodeBaseInterface, NodeParametersInterface, NodeTopicsInterface, and NodeLoggingInterface.
@@ -146,47 +113,6 @@ Publisher create_publisher(
146113 rclcpp::QoS custom_qos,
147114 const rclcpp::PublisherOptions & options = rclcpp::PublisherOptions());
148115
149- // / \brief Subscribe to a pointcloud transport topic, free function version.
150- // / \param node The ROS node to use for any ROS operations
151- // / \param base_topic The base topic for the subscription
152- // / \param callback The callback to invoke on receipt of a message
153- // / \param transport The transport to use for the subscription
154- // / \param custom_qos The QoS profile to use for the underlying publisher
155- // / \param options The publisher options to use for the underlying publisher
156- // / \return The subscriber
157- [[deprecated("Use create_subscription(rclcpp::node_interfaces...) instead")]]
158- POINT_CLOUD_TRANSPORT_PUBLIC
159- Subscriber create_subscription (
160- std::shared_ptr<rclcpp::Node> node,
161- const std::string & base_topic,
162- const Subscriber::Callback & callback,
163- const std::string & transport,
164- rmw_qos_profile_t custom_qos = rmw_qos_profile_default,
165- rclcpp::SubscriptionOptions options = rclcpp::SubscriptionOptions());
166-
167- // / \brief Subscribe to a pointcloud transport topic, free function version.
168- // / \param node_interfaces the ROS node interfaces required for core node functionality, including
169- // / NodeBaseInterface, NodeParametersInterface, NodeTopicsInterface, and NodeLoggingInterface.
170- // / \param base_topic The base topic for the subscription
171- // / \param callback The callback to invoke on receipt of a message
172- // / \param transport The transport to use for the subscription
173- // / \param custom_qos The QoS profile to use for the underlying publisher
174- // / \param options The publisher options to use for the underlying publisher
175- // / \return The subscriber
176- [[deprecated("Use create_subscription(rclcpp::node_interfaces..., rclcpp::QoS, ...) instead")]]
177- POINT_CLOUD_TRANSPORT_PUBLIC
178- Subscriber create_subscription (
179- std::shared_ptr<rclcpp::node_interfaces::NodeInterfaces<
180- rclcpp::node_interfaces::NodeBaseInterface,
181- rclcpp::node_interfaces::NodeParametersInterface,
182- rclcpp::node_interfaces::NodeTopicsInterface,
183- rclcpp::node_interfaces::NodeLoggingInterface>> & node_interfaces,
184- const std::string & base_topic,
185- const Subscriber::Callback & callback,
186- const std::string & transport,
187- rmw_qos_profile_t custom_qos = rmw_qos_profile_default,
188- rclcpp::SubscriptionOptions options = rclcpp::SubscriptionOptions());
189-
190116// / \brief Subscribe to a pointcloud transport topic, free function version.
191117// / \param node_interfaces the ROS node interfaces required for core node functionality, including
192118// / NodeBaseInterface, NodeParametersInterface, NodeTopicsInterface, and NodeLoggingInterface.
@@ -218,10 +144,6 @@ class PointCloudTransport : public PointCloudTransportLoader
218144
219145public:
220146 // ! Constructor
221- [[deprecated("Use PointCloudTransport(rclcpp::node_interfaces...) instead")]]
222- POINT_CLOUD_TRANSPORT_PUBLIC
223- explicit PointCloudTransport (rclcpp::Node::SharedPtr node);
224-
225147 POINT_CLOUD_TRANSPORT_PUBLIC
226148 explicit PointCloudTransport (
227149 rclcpp::node_interfaces::NodeInterfaces<
@@ -267,17 +189,6 @@ class PointCloudTransport : public PointCloudTransportLoader
267189 return Publisher (node_interfaces_, base_topic, pub_loader_, custom_qos, options);
268190 }
269191
270- [[deprecated("Use advertise(..., rclcpp::QoS custom_qos, ...) instead")]]
271- POINT_CLOUD_TRANSPORT_PUBLIC
272- Publisher advertise (
273- const std::string & base_topic,
274- rmw_qos_profile_t custom_qos,
275- const rclcpp::PublisherOptions & options = rclcpp::PublisherOptions())
276- {
277- return Publisher (node_interfaces_, base_topic, pub_loader_,
278- rclcpp::QoS (rclcpp::QoSInitialization::from_rmw (custom_qos), custom_qos), options);
279- }
280-
281192 POINT_CLOUD_TRANSPORT_PUBLIC
282193 Publisher advertise (
283194 const std::string & base_topic,
@@ -287,23 +198,6 @@ class PointCloudTransport : public PointCloudTransportLoader
287198 return Publisher (node_interfaces_, base_topic, pub_loader_, custom_qos, options);
288199 }
289200
290- // ! Subscribe to a point cloud topic, version for arbitrary std::function object.
291- [[deprecated("Use subscribe(..., rclcpp::QoS custom_qos, ...) instead")]]
292- POINT_CLOUD_TRANSPORT_PUBLIC
293- point_cloud_transport::Subscriber subscribe (
294- const std::string & base_topic, rmw_qos_profile_t custom_qos,
295- const std::function<void (const sensor_msgs::msg::PointCloud2::ConstSharedPtr &)> & callback,
296- const VoidPtr & tracked_object = {},
297- const point_cloud_transport::TransportHints * transport_hints = nullptr ,
298- rclcpp::SubscriptionOptions options = rclcpp::SubscriptionOptions())
299- {
300- (void )tracked_object;
301- return Subscriber (
302- node_interfaces_, base_topic, callback, sub_loader_,
303- getTransportOrDefault (transport_hints),
304- rclcpp::QoS (rclcpp::QoSInitialization::from_rmw (custom_qos), custom_qos), options);
305- }
306-
307201 // ! Subscribe to a point cloud topic, version for arbitrary std::function object.
308202 POINT_CLOUD_TRANSPORT_PUBLIC
309203 point_cloud_transport::Subscriber subscribe (
@@ -334,20 +228,6 @@ class PointCloudTransport : public PointCloudTransportLoader
334228 base_topic, custom_qos, callback, tracked_object, transport_hints, options);
335229 }
336230
337- [[deprecated("Use subscribe(..., rclcpp::QoS custom_qos, ...) instead")]]
338- POINT_CLOUD_TRANSPORT_PUBLIC
339- point_cloud_transport::Subscriber subscribe (
340- const std::string & base_topic, rmw_qos_profile_t custom_qos,
341- void (* fp)(const sensor_msgs::msg::PointCloud2::ConstSharedPtr &),
342- const point_cloud_transport::TransportHints * transport_hints = nullptr,
343- rclcpp::SubscriptionOptions options = rclcpp::SubscriptionOptions())
344- {
345- return subscribe (
346- base_topic, rclcpp::QoS (rclcpp::QoSInitialization::from_rmw (custom_qos), custom_qos),
347- std::function<void (const sensor_msgs::msg::PointCloud2::ConstSharedPtr &)>(fp),
348- VoidPtr (), transport_hints, options);
349- }
350-
351231 POINT_CLOUD_TRANSPORT_PUBLIC
352232 point_cloud_transport::Subscriber subscribe (
353233 const std::string & base_topic, rclcpp::QoS custom_qos,
@@ -374,22 +254,6 @@ class PointCloudTransport : public PointCloudTransportLoader
374254 VoidPtr (), transport_hints, options);
375255 }
376256
377- // ! Subscribe to a point cloud topic, version for class member function with bare pointer.
378- template <class T >
379- [[deprecated("Use subscribe(..., rclcpp::QoS custom_qos, ...) instead")]]
380- point_cloud_transport::Subscriber subscribe (
381- const std::string & base_topic, rmw_qos_profile_t custom_qos,
382- void (T::* fp)(const sensor_msgs::msg::PointCloud2::ConstSharedPtr &) const , T * obj,
383- const point_cloud_transport::TransportHints * transport_hints = nullptr,
384- rclcpp::SubscriptionOptions options = rclcpp::SubscriptionOptions())
385- {
386- return subscribe (
387- base_topic, rclcpp::QoS (rclcpp::QoSInitialization::from_rmw (custom_qos), custom_qos),
388- std::bind (
389- fp,
390- obj, std::placeholders::_1), VoidPtr (), transport_hints, options);
391- }
392-
393257 // ! Subscribe to a point cloud topic, version for class member function with bare pointer.
394258 template <class T >
395259 point_cloud_transport::Subscriber subscribe (
@@ -417,23 +281,6 @@ class PointCloudTransport : public PointCloudTransportLoader
417281 obj, std::placeholders::_1), VoidPtr (), transport_hints, options);
418282 }
419283
420- // ! Subscribe to a point cloud topic, version for class member function with shared_ptr.
421- template <class T >
422- [[deprecated("Use subscribe(..., rclcpp::QoS custom_qos, ...) instead")]]
423- point_cloud_transport::Subscriber subscribe (
424- const std::string & base_topic, rmw_qos_profile_t custom_qos,
425- void (T::* fp)(const sensor_msgs::msg::PointCloud2::ConstSharedPtr &) const ,
426- const std::shared_ptr<T> & obj,
427- const point_cloud_transport::TransportHints * transport_hints = nullptr,
428- const rclcpp::SubscriptionOptions & options = rclcpp::SubscriptionOptions())
429- {
430- return subscribe (
431- base_topic, rclcpp::QoS (rclcpp::QoSInitialization::from_rmw (custom_qos), custom_qos),
432- std::bind (
433- fp,
434- obj, std::placeholders::_1), obj, transport_hints, options);
435- }
436-
437284 // ! Subscribe to a point cloud topic, version for class member function with shared_ptr.
438285 template <class T >
439286 point_cloud_transport::Subscriber subscribe (
0 commit comments