Use PLUGINLIB_EXPORT_CLASS to fix compilation error on ROS Melodic on Ubuntu 18.04
This commit is contained in:
		@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user