ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Compiler error: Expected constructor, destructor, or type conversion in octomap_server_nodelet.cpp

asked 2019-11-22 06:12:46 -0600

anonymous user


updated 2019-11-22 06:43:03 -0600

gvdhoorn gravatar image

I'm currently trying to build a project found here : I'm using ROS Medolic on Ubuntu 18. 04.3 LTS

When running catkin_make -j8 i get the following error:

/home/rwilliams/trav_nav_indigo_ws/src/ms_octomap_server/src/octomap_server_nodelet.cpp:60:24: error: expected constructor, destructor, or type conversion before ‘(’ token
 PLUGINLIB_DECLARE_CLASS(ms_octomap_server, OctomapServerNodelet, ms_octomap_server::OctomapServerNodelet, nodelet::Nodelet);

I have checked that I have the packages required installed.

Any ideas on how to fix this issue?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2022-06-24 03:37:41 -0600

mr.sid_shete gravatar image


PLUGINLIB_DECLARE_CLASS(depthimage_to_laserscan, DepthImageToLaserScanNodelet, depthimage_to_laserscan::DepthImageToLaserScanNodelet, nodelet::Nodelet);


PLUGINLIB_EXPORT_CLASS(depthimage_to_laserscan::DepthImageToLaserScanNodelet, nodelet::Nodelet);

this should work!!

edit flag offensive delete link more

Question Tools


Asked: 2019-11-22 06:12:46 -0600

Seen: 719 times

Last updated: Jun 24 '22