Open Lau127 opened 9 months ago
The melodic-devel
is synced with the rtabmap melodic binaries, you may install it with:
sudo apt install ros-melodic-rtabmap-ros
instead of rebuilding it.
However, I tried re-building it in a melodic docker image and it seems fine:
Not sure what is the difference, maybe the gcc version used depending on the dependencies detected.
Hi, I've installed rtabmap for ROS Melodic in ubuntu 18.04 from source and I'm facing some errors...
First, I've installed the branch melodic-devel through these commands: $ git clone --single-branch --branch melodic-devel https://github.com/introlab/rtabmap.git $ git clone --single-branch --branch melodic-devel https://github.com/introlab/rtabmap_ros.git
Then, I've compile my catkin_ws and I get this error:
Base path: /home/vslam/catkin_ws Source space: /home/vslam/catkin_ws/src Build space: /home/vslam/catkin_ws/build Devel space: /home/vslam/catkin_ws/devel Install space: /home/vslam/catkin_ws/install
Running command: "make cmake_check_build_system" in "/home/vslam/catkin_ws/build"
Running command: "make -j1" in "/home/vslam/catkin_ws/build"
[ 1%] Built target rtabmap_costmap_plugins [ 2%] Built target rtabmap_point_cloud_assembler [ 3%] Built target rtabmap_pointcloud_to_depthimage [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_RGBDImage [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_NodeData [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GetMap [ 3%] Built target std_msgs_generate_messages_nodejs [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_Info [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GetPlan [ 3%] Built target geometry_msgs_generate_messages_nodejs [ 3%] Built target sensor_msgs_generate_messages_nodejs [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_MapGraph [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_RemoveLabel [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GetNodesInRadius [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_SetLabel [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_ScanDescriptor [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_MapData [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_Path [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_PublishMap [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_AddLink [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_DetectMoreLoopClosures [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_OdomInfo [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_EnvSensor [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_Goal [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_Link [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_CleanupLocalGrids [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GetMap2 [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_UserData [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_ResetPose [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GetNodeData [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_CameraModels [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_RGBDImages [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_Point3f [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_SetGoal [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GlobalBundleAdjustment [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_LoadDatabase [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GlobalDescriptor [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_CameraModel [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_ListLabels [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_Point2f [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_GPS [ 3%] Built target _rtabmap_ros_generate_messages_check_deps_KeyPoint [ 15%] Built target rtabmap_ros_generate_messages_nodejs [ 15%] Built target sensor_msgs_generate_messages_eus [ 15%] Built target std_msgs_generate_messages_eus [ 15%] Built target geometry_msgs_generate_messages_eus [ 27%] Built target rtabmap_ros_generate_messages_eus [ 27%] Built target rtabmap_ros_gencfg [ 27%] Built target sensor_msgs_generate_messages_cpp [ 27%] Built target std_msgs_generate_messages_cpp [ 27%] Built target geometry_msgs_generate_messages_cpp [ 40%] Built target rtabmap_ros_generate_messages_cpp [ 40%] Built target geometry_msgs_generate_messages_py [ 40%] Built target sensor_msgs_generate_messages_py [ 40%] Built target std_msgs_generate_messages_py [ 52%] Built target rtabmap_ros_generate_messages_py [ 52%] Built target geometry_msgs_generate_messages_lisp [ 52%] Built target sensor_msgs_generate_messages_lisp [ 52%] Built target std_msgs_generate_messages_lisp [ 63%] Built target rtabmap_ros_generate_messages_lisp [ 63%] Building CXX object rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o In file included from /usr/include/pcl-1.8/pcl/search/kdtree.h:44:0, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/impl/util3d_surface.hpp:11, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/util3d_surface.h:572, from /home/vslam/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:48: /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:230:29: error: field ‘paramk’ has incomplete type ‘flann::SearchParams’ ::flann::SearchParams paramk; ^
~~~ In file included from /usr/include/pcl-1.8/pcl/search/kdtree.h:44:0, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/impl/util3d_surface.hpp:11, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/util3d_surface.h:572, from /home/vslam/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:48: /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:52:10: note: forward declaration of ‘struct flann::SearchParams’ struct SearchParams; ^~~~ In file included from /usr/include/pcl-1.8/pcl/search/kdtree.h:44:0, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/impl/util3d_surface.hpp:11, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/util3d_surface.h:572, from /home/vslam/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:48: /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:233:29: error: field ‘paramradius’ has incomplete type ‘flann::SearchParams’ ::flann::SearchParams paramradius; ^~~~~ In file included from /usr/include/pcl-1.8/pcl/search/kdtree.h:44:0, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/impl/util3d_surface.hpp:11, from /usr/local/lib/rtabmap-0.20/../../include/rtabmap-0.20/rtabmap/core/util3d_surface.h:572, from /home/vslam/catkin_ws/src/rtabmap_ros/src/MsgConversion.cpp:48: /usr/include/pcl-1.8/pcl/kdtree/kdtree_flann.h:52:10: note: forward declaration of ‘struct flann::SearchParams’ struct SearchParams; ^~~~ rtabmap_ros/CMakeFiles/rtabmap_ros.dir/build.make:62: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o' failed make[2]: [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/src/MsgConversion.cpp.o] Error 1 CMakeFiles/Makefile2:5064: recipe for target 'rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all' failed make[1]: [rtabmap_ros/CMakeFiles/rtabmap_ros.dir/all] Error 2 Makefile:140: recipe for target 'all' failed make: *** [all] Error 2 Invoking "make -j1" failedI've tried to rebuild rtabmap but it isn't working... are there any suggestions???
Thank you!