'make' fails when building the rtabmap package.
Hi,
I was using rtabmap_ros version 0.17.6 and working on SLAM with Gazebo as shown here. I wanted to take a look at the map that is stored in ~/.ros/rtabmap.db
and saw that I needed the database viewer tool for that.
So this is where I think I played around and messed things up.
I noticed that I only had a folder called 'rtabmap_ros' and no folder called 'rtabmap' and when I tried to run the following command:
rtabmap-databaseViewer~/.ros/rtabmap.db
I got the error message:
[ERROR] (2019-07-31 21:11:51.053) DBDriverSqlite3.cpp:398::connectDatabaseQuery() Opened database version (0.18.3) is more recent than rtabmap installed version (0.17.6). Please update rtabmap to new version!
So I tried to install RTAB-Map standalone libraries as shown in step 2 of 'Build from source', to later update to a newer version as shown at the end of the tutorial and it failed at make
. So I uninstalled rtabmap and rtabmap_ros and then tried the installation instructions from the beginning and still the make
in step 2 failed.
So I thought I might have to remove all rtabmap and rtabmap_ros folders already in the VM apart from unistalling the packages and start from the beginning. However, this time step 2 fails with:
CMake Error at rtabmap_ros/CMakeLists.txt:34 (find_package): Could not find a configuration file for package "RTABMap" that is compatible with requested version "0.19.3". The following configuration files were considered but not accepted: /usr/local/lib/rtabmap-0.18/RTABMapConfig.cmake, version: 0.18.3 /opt/ros/kinetic/lib/x86_64-linux-gnu/rtabmap-0.17/RTABMapConfig.cmake, version: 0.17.6 /usr/local/lib/rtabmap-0.18/RTABMapConfig.cmake, version: 0.18.3 -- Configuring incomplete, errors occurred! See also "/home/malar/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/malar/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed
Now I am at a loss of how to fix this issue. I still have the 'rtabmap_ros' and 'rtabmap' folders that I deleted in trash (just in case). Do I just move them back into their place?
And ever since I tried to update the 'rtabmap_ros' packages, when I run roslaunch rtabmap_ros demo_turtlebot_mapping.launch simulation:=true
. I get the following error:
Failed to load nodelet [/rtabmap/rtabmap] of type [rtabmap_ros/rtabmap] even after refreshing the cache: MultiLibraryClassLoader: Could not create object of class type rtabmap_ros::CoreWrapper as no factory exists for it. Make sure that the library exists and was explicitly loaded through MultiLibraryClassLoader::loadLibrary()
The error before refreshing the cache was: MultiLibraryClassLoader: Could not create object of class type rtabmap_ros::CoreWrapper as no factory exists for it. Make sure that the library exists and was explicitly loaded through MultiLibraryClassLoader::loadLibrary()
How do I successfully update rtabmap and rtabmap_ros to be able to use the database viewer tool? If not, how do I restore everything back to how it was, so that at the very least rtabmap_ros works?
Edit: So, I moved the 'rtabmap_ros' folders to their original ...