From 8ed609181fc760eb367147fbd5167f3e8fcedef0 Mon Sep 17 00:00:00 2001 From: Amogh Mannekote Date: Sun, 30 Dec 2018 16:24:19 +0530 Subject: [PATCH] Use PLUGINLIB_EXPORT_CLASS to fix compilation error on ROS Melodic on Ubuntu 18.04 --- src/image_processor_nodelet.cpp | 4 ++-- src/msckf_vio_nodelet.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/image_processor_nodelet.cpp b/src/image_processor_nodelet.cpp index e172693..6deb1ed 100644 --- a/src/image_processor_nodelet.cpp +++ b/src/image_processor_nodelet.cpp @@ -17,8 +17,8 @@ void ImageProcessorNodelet::onInit() { return; } -PLUGINLIB_DECLARE_CLASS(msckf_vio, ImageProcessorNodelet, - msckf_vio::ImageProcessorNodelet, nodelet::Nodelet); +PLUGINLIB_EXPORT_CLASS(msckf_vio::ImageProcessorNodelet, + nodelet::Nodelet); } // end namespace msckf_vio diff --git a/src/msckf_vio_nodelet.cpp b/src/msckf_vio_nodelet.cpp index dfbb54c..f8eef5e 100644 --- a/src/msckf_vio_nodelet.cpp +++ b/src/msckf_vio_nodelet.cpp @@ -17,8 +17,8 @@ void MsckfVioNodelet::onInit() { return; } -PLUGINLIB_DECLARE_CLASS(msckf_vio, MsckfVioNodelet, - msckf_vio::MsckfVioNodelet, nodelet::Nodelet); +PLUGINLIB_EXPORT_CLASS(msckf_vio::MsckfVioNodelet, + nodelet::Nodelet); } // end namespace msckf_vio