Giter VIP home page Giter VIP logo

Comments (10)

matlabbe avatar matlabbe commented on May 17, 2024 1

It is not explicitly explained in the instructions, but rtabmap library should be built outside the catkin workspace because it is not a common catkin package (it is a plain cmake package). Cloning rtabmap in src folder of catkin will result in errors.

Merging all directives in one walkthrough:

$ source /opt/ros/indigo/setup.bash

$ cd ~
$ git clone https://github.com/introlab/rtabmap.git rtabmap
$ cd rtabmap/build
$ cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..
$ make -j4
$ make install

$ source ~/catkin_ws/devel/setup.bash

$ cd ~/catkin_ws
$ git clone https://github.com/introlab/rtabmap_ros.git src/rtabmap_ros
$ catkin_make

If you still have problems, a copy-paste of the catkin_make errors would be useful.

cheers

from rtabmap.

matlabbe avatar matlabbe commented on May 17, 2024

If you are building rtabmap_ros from source, you should build rtabmap from source too (to match the version). Uninstall ros-indigo-rtabmap:

sudo apt-get remove ros-indigo-rtabmap

Then follow instructions from here.

cheers

from rtabmap.

 avatar commented on May 17, 2024

I tried the above the instructions,but still i'm getting the same error.Now i un-installed everything and i would like install by follwing below steps,
1.Install the RTAB standalone libraries in the catkin/devel folder.
2.Install the RTAB-ROS pkg in the catkin/src folder.
3.then catkin_make.

As per the above the comment,i installed the both the RTAB and RTAB-ROS pkg in the src folder,but it didn't work!

correct me,if i'm wrong!

Thanks in advance.

from rtabmap.

walekarsayali avatar walekarsayali commented on May 17, 2024

I tried to implement above mentioned method with ROS-Melodic. Following error occurred :
Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find move_base_msgs (missing: move_base_msgs_DIR)
-- Could not find the required component 'move_base_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "move_base_msgs"
with any of the following names:

move_base_msgsConfig.cmake
move_base_msgs-config.cmake

Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
"move_base_msgs_DIR" to a directory containing one of the above files. If
"move_base_msgs" provides a separate development package or SDK, be sure it
has been installed.

from rtabmap.

walekarsayali avatar walekarsayali commented on May 17, 2024

@matlabbe I tried to implement above mentioned method with ROS-Melodic. Following error occurred :
Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
-- Could NOT find move_base_msgs (missing: move_base_msgs_DIR)
-- Could not find the required component 'move_base_msgs'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
Could not find a package configuration file provided by "move_base_msgs"
with any of the following names:

move_base_msgsConfig.cmake
move_base_msgs-config.cmake

Add the installation prefix of "move_base_msgs" to CMAKE_PREFIX_PATH or set
"move_base_msgs_DIR" to a directory containing one of the above files. If
"move_base_msgs" provides a separate development package or SDK, be sure it
has been installed.

from rtabmap.

matlabbe avatar matlabbe commented on May 17, 2024

sudo apt install ros-melodic-move-base-msgs

from rtabmap.

zhaohaowu avatar zhaohaowu commented on May 17, 2024

thanks to the answer of matlabbe, my question is
cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..
here my workspace is test, replace catkin_ws with test is ok

from rtabmap.

matlabbe avatar matlabbe commented on May 17, 2024

This command:

cmake -DCMAKE_INSTALL_PREFIX=~/catkin_ws/devel ..

will install in your catkin workspace's devel directory. It is more for preference, if you want to install rtabmap library like any linux libraries, just do:

cmake ..

and it will be installed in /usr/local prefix.

from rtabmap.

jakb2403 avatar jakb2403 commented on May 17, 2024

@matlabbe Thanks for the walkthrough. After following the instructions and executing catkin_make I got the following errors:

-- Using these message generators: gencpp;geneus;genlisp;gennodejs;genpy
CMake Warning at rtabmap_ros/CMakeLists.txt:28 (find_package):
  By not providing "Findapriltag_ros.cmake" in CMAKE_MODULE_PATH this project
  has asked CMake to find a package configuration file provided by
  "apriltag_ros", but CMake did not find one.

  Could not find a package configuration file provided by "apriltag_ros" with
  any of the following names:

    apriltag_rosConfig.cmake
    apriltag_ros-config.cmake

  Add the installation prefix of "apriltag_ros" to CMAKE_PREFIX_PATH or set
  "apriltag_ros_DIR" to a directory containing one of the above files.  If
  "apriltag_ros" provides a separate development package or SDK, be sure it
  has been installed.


CMake Error at rtabmap_ros/CMakeLists.txt:34 (find_package):
  By not providing "FindRTABMap.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "RTABMap", but
  CMake did not find one.

  Could not find a package configuration file provided by "RTABMap"
  (requested version 0.20.13) with any of the following names:

    RTABMapConfig.cmake
    rtabmap-config.cmake

  Add the installation prefix of "RTABMap" to CMAKE_PREFIX_PATH or set
  "RTABMap_DIR" to a directory containing one of the above files.  If
  "RTABMap" provides a separate development package or SDK, be sure it has
  been installed.

Following the same logic as your answer to @walekarsayali, I tried:
sudo apt install ros-noetic-rtabmap
But then I got the same error message as in the original post on this issue:

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.20.13".

  The following configuration files were considered but not accepted:

    /opt/ros/noetic/lib/x86_64-linux-gnu/rtabmap-0.20/RTABMapConfig.cmake, version: 0.20.10

which makes sense because that just installs rtabmap_ros (not from source).

What should I do to solve the first error I quoted here?
Thanks for your help!

from rtabmap.

jakb2403 avatar jakb2403 commented on May 17, 2024

Sorry the above (#31 (comment)) is a duplicate.
The answer to this question can be found here: introlab/rtabmap_ros#118 (comment)

from rtabmap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.