From ebebf08a95656d7fc107ea485edee9e4d275d16e Mon Sep 17 00:00:00 2001
From: Sergi Hernandez Juan <shernand@iri.upc.edu>
Date: Tue, 14 Jul 2020 17:42:57 +0200
Subject: [PATCH] Changed the macro used to create new plugins. Used the
 nodelet_spin() function in the nodelet.

---
 src/iri_point_cloud_hole_detection_alg_node.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/iri_point_cloud_hole_detection_alg_node.cpp b/src/iri_point_cloud_hole_detection_alg_node.cpp
index 9e06906..05f7898 100644
--- a/src/iri_point_cloud_hole_detection_alg_node.cpp
+++ b/src/iri_point_cloud_hole_detection_alg_node.cpp
@@ -134,11 +134,11 @@ void *PointCloudHoleDetectionAlgNodelet::spin_thread(void *param)
 {
   PointCloudHoleDetectionAlgNodelet *nodelet=(PointCloudHoleDetectionAlgNodelet *)param;
 
-  nodelet->node->spin();
+  nodelet->node->nodelet_spin();
 
   pthread_exit(NULL);
 }
 
 // parameters are: package, class name, class type, base class type
-PLUGINLIB_DECLARE_CLASS(iri_point_cloud_hole_detection, PointCloudHoleDetectionAlgNodelet, PointCloudHoleDetectionAlgNodelet, nodelet::Nodelet);
+PLUGINLIB_EXPORT_CLASS(PointCloudHoleDetectionAlgNodelet, nodelet::Nodelet);
 
-- 
GitLab