Use PLUGINLIB_EXPORT_CLASS to fix compilation error on ROS Melodic on Ubuntu 18.04

This commit is contained in:
Amogh Mannekote 2018-12-30 16:24:19 +05:30
parent a9386c5d2b
commit 8ed609181f
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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