Ask Your Question
0

octomap_server nodelet missing under Hydro

asked 2013-11-13 22:10:50 -0500

Huibuh gravatar image

updated 2013-11-14 10:45:46 -0500

tfoote gravatar image

Hello,

1) After successfully running octomap_server as node, I would like to try running it as nodelet. If I roslaunch octomap_server octomap_mapping_nodelet.launch I get the following error:

[ERROR] [1384422211.742630096]: Failed to load nodelet [/octomap_server_nodelet] of type [octomap_server/OctomapServerNodelet]: According to the loaded plugin descriptions the class octomap_server/OctomapServerNodelet with base class type nodelet::Nodelet does not exist.

Looking at the contents of /opt/ros/hydro/share/octomap_server, I can see that there is no nodelet_plugins.xml file in there. I am using the latest octomap_server binary package that comes with Hydro. The dev version, however, does contain the nodelet definition file, see https://github.com/OctoMap/octomap_mapping/tree/hydro-devel/octomap_server/plugins

2) When cloning https://github.com/OctoMap/octomap_mapping.git into my workspace and compiling it with catkin_make, I get this "no matching function" error:

In file included from /home/ros/catkin_ws/src/octomap_mapping/octomap_server/src/OctomapServerMultilayer.cpp:30: /opt/ros/hydro/include/pcl_conversions/pcl_conversions.h: In function ‘void pcl_conversions::fromPCL(const PointIndices&, pcl_msgs::PointIndices&)’: /opt/ros/hydro/include/pcl_conversions/pcl_conversions.h:265:37: error: no matching function for call to ‘fromPCL(const _header_type&, pcl_msgs::PointIndices_<std::allocator<void> >::_header_type&)’

@AHornung:Any idea what is broken here?

Cheers

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2013-11-14 00:55:01 -0500

AHornung gravatar image

Regarding 1: Looks like the file nodelet_plugins.xml is not installed via CMake so it's missing from the binary install. This could be related to this issue on octomap_mapping. That should be easy to fix similar to this commit/patch: https://github.com/ros-drivers/velodyne/commit/784e5c6d590e605315fb90c2fc350cc20b4e0cae

Regarding 2: Cloning the devel version (hydro-devel branch) should definitely work and compile, I just verified. Could it be that you have an outdated version of pcl_conversions installed?

edit flag offensive delete link more

Comments

Thanks Armin, I managed to resolve both issues. 1): Now using octomap_mapping compiled from source which included the nodelet definition. 2): My catkin_ws was currupted. After deleting the build and devel folders and recreating them the octomap_mapping package compiled without errors. Thanks, Heiko

Huibuh gravatar image Huibuh  ( 2013-11-14 02:21:49 -0500 )edit

I just pushed the fix for the installation to the hydro-devel branch, will be part of the next release.

AHornung gravatar image AHornung  ( 2013-11-14 02:23:44 -0500 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-11-13 22:10:50 -0500

Seen: 253 times

Last updated: Nov 14 '13