Robotics StackExchange | Archived questions

Build ORB_SLAM3 node fail with ROS Noetic

Hi, I'm kinda new to ROS and ORB-SLAM3. I tried to build my OB-SLAM3 with ROS but I got this error. Is there anyone can help me with this error? Thanks!

-- Found PythonInterp: /usr/bin/python (found version "2.7.18") 
[rosbuild] Building package ORB_SLAM3
[rosbuild] Error from syntax check of ORB_SLAM3/manifest.xml
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/ros/noetic/lib/python3/dist-packages/roslib/__init__.py", line 50, in <module>
    from roslib.launcher import load_manifest  # noqa: F401
  File "/opt/ros/noetic/lib/python3/dist-packages/roslib/launcher.py", line 42, in <module>
    import rospkg
ImportError: No module named rospkg

CMake Error at /opt/ros/noetic/share/ros/core/rosbuild/private.cmake:77 (message):
  [rosbuild] Syntax check of ORB_SLAM3/manifest.xml failed; aborting
Call Stack (most recent call first):
  /opt/ros/noetic/share/ros/core/rosbuild/public.cmake:174 (_rosbuild_check_manifest)
  CMakeLists.txt:4 (rosbuild_init)

-- Configuring incomplete, errors occurred!
See also "/home/nanda/dev/ORB_SLAM3/Examples_old/ROS/ORB_SLAM3/build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.

Asked by nndorenji on 2022-11-01 21:28:20 UTC

Comments

If you are not inside a conda environment, then it is an installation issue with ROS. Did you follow the installation documentation properly? Alternatively please try pip install rospkg

Asked by ravijoshi on 2022-11-02 07:32:40 UTC

Answers