ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

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

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

anonymous user

Anonymous

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

gvdhoorn gravatar image

I'm currently trying to build a project found here : https://github.com/mariogianni/trav_n... 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
0

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

mr.sid_shete gravatar image

Replace

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

with

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

this should work!!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

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

Seen: 341 times

Last updated: Jun 24 '22