Skip to content
← Back to activity

Solution skill

Unable to build ORB_SLAM3 with ROS using ./build_ros.sh on ubuntu 20.04 with ros-noetic-desktop-full

Version 2Sign in to save

Complete solution

Shows how to fix unable to build ORB_SLAM3 with ROS using ./build_ros.sh on ubuntu 20.04 with ros-noetic-desktop-full. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

Issue UZ-SLAMLab/ORBSLAM3#913 (closed, 9 comments): I have installed ros-noetic-desktop-full Paths for rosroot and rospackage are echo $ROSROOT /opt/ros/noetic/share/ros echo $ROSPACKAGEPATH /opt/ros/noetic/share:~/ORBSLAM3/Examplesold/ROS/ORBSLAM3 after running./buildros.sh, I get [rosbuild] Building package ORBSLAM3 Failed to invoke /opt/ros/noetic/bin/rospack deps-manifests ORBSLAM3 ModuleNotFoundError: No module named 'rosdep2' [rospack] Error: could not find python module 'rosdep2.rospack'. is rosdep up-to-date (at least 0.10.4)?

Steps

  1. Issue UZ-SLAMLab/ORBSLAM3#913 (closed, 9 comments): I have installed ros-noetic-desktop-full Paths for rosroot and rospackage are echo $ROSROOT /opt/ros/noetic/share/ros echo $ROSPACKAGEPATH /opt/ros/noetic/share:~/ORBSLAM3/Examplesold/ROS/ORBSLAM3 after running ./buildros.sh, I get [rosbuild] Building package ORBSLAM3 Failed to invoke /opt/ros/noetic/bin/rospack deps-manifests ORBSLAM3 ModuleNotFoundError: No module named 'rosdep2' [rospack] Error: could not find python module 'rosdep2.rospack'. is rosdep up-to-date (at least 0.10.4)? CMake Error at /opt/ros/noetic/share/ros/core/rosbuild/public.
  2. The ORBSLAM3 ROS build failing with 'No module named rosdep2' (and rospack errors) was fixed by the reporter with a clean reinstall: purge ros-noetic from the system and reinstall it using the standard ROS Noetic Ubuntu install instructions. The broken install was the problem, not the ORBSLAM3 build itself.

When to use

You are seeing this: CMake Error at /opt/ros/noetic/share/ros/core/rosbuild/public. Use this skill when you run into "Unable to build ORBSLAM3 with ROS using ./buildros.sh on ubuntu 20.04 with ros-noetic-desktop-full".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: least 0.10.4. If you are on something much newer or older, the details may have shifted.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Sources

  • https://github.com/UZ-SLAMLab/ORB_SLAM3/issues/913

Evidence

In gh:UZ-SLAMLab/ORBSLAM3#913, the reporter ran into: Issue UZ-SLAMLab/ORBSLAM3#913 (closed, 9 comments): I have installed ros-noetic-desktop-full Paths for rosroot and rospackage are echo $ROSROOT /opt/ros/noetic/share/ros echo $ROSPACKAGEPATH /opt/ros/noetic/share:~/ORBSLAM3/Examplesold/ROS/ORBSLAM3 after running ./buildros.sh, I get [rosbuild] Building package ORBSLAM3 Failed to invoke /opt/ros/noetic/bin/rospack deps-manifests ORBSLAM3 ModuleNotFoundError: No module named 'rosdep2' [rospack] Error: could not find python module 'rosdep2.rospack'. is rosdep up-to-date (at least 0.10.4)? CMake Error at... The verified answer was: The ORBSLAM3 ROS build failing with 'No module named rosdep2' (and rospack errors) was fixed by the reporter with a clean reinstall: purge ros-noetic from the system and reinstall it using the standard ROS Noetic Ubuntu install instructions. The broken install was the problem, not the ORBSLAM3 build itself. Source issue: https://github.com/UZ-SLAMLab/ORBSLAM3/issues/913

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_QZo_ZEIVhOGC1mPkW757HA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Unable to build ORB_SLAM3 with ROS using ./build_ros.sh on ubuntu 20.04 with ros-noetic-desktop-full <span>— Vectle</span></a>