ORB_SLAM3運行./build_ros.sh后,出現Error from directory check: /opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py /home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3 1


ORB_SLAM3運行./build_ros.sh后,出現:

Building ROS nodes
mkdir: 無法創建目錄"build": 文件已存在
[rosbuild] Building package ORB_SLAM3
[rosbuild] Error from directory check: /opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py  /home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3
1
Traceback (most recent call last):
  File "/opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py", line 46, in <module>
    raise Exception
Exception
CMake Error at /opt/ros/kinetic/share/ros/core/rosbuild/private.cmake:102 (message):
  [rosbuild] rospack found package "ORB_SLAM3" at "", but the current
  directory is "/home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3".  You
  should double-check your ROS_PACKAGE_PATH to ensure that packages are found
  in the correct precedence order.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/ros/core/rosbuild/public.cmake:177 (_rosbuild_check_package_location)
  CMakeLists.txt:4 (rosbuild_init)


-- Configuring incomplete, errors occurred!
See also "/home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3/build/CMakeFiles/CMakeOutput.log".
See also "/home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3/build/CMakeFiles/CMakeError.log".
[rosbuild] Building package ORB_SLAM3
[rosbuild] Error from directory check: /opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py  /home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3
1
Traceback (most recent call last):
  File "/opt/ros/kinetic/share/ros/core/rosbuild/bin/check_same_directories.py", line 46, in <module>
    raise Exception
Exception
CMake Error at /opt/ros/kinetic/share/ros/core/rosbuild/private.cmake:102 (message):
  [rosbuild] rospack found package "ORB_SLAM3" at "", but the current
  directory is "/home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3".  You
  should double-check your ROS_PACKAGE_PATH to ensure that packages are found
  in the correct precedence order.
Call Stack (most recent call first):
  /opt/ros/kinetic/share/ros/core/rosbuild/public.cmake:177 (_rosbuild_check_package_location)
  CMakeLists.txt:4 (rosbuild_init)


-- Configuring incomplete, errors occurred!
See also "/home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3/build/CMakeFiles/CMakeOutput.log".
See also "/home/xxx/Desktop/ORB_SLAM3/Examples/ROS/ORB_SLAM3/build/CMakeFiles/CMakeError.log".
Makefile:810: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1

在終端輸入:

echo ${ROS_PACKAGE_PATH}}

並沒有顯示出ORB_SLAM3的包路徑,說明

export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:"${your path}"/ORB_SLAM3/Examples/ROS

這句話並未加到~/.bashrc文件中,或者加的位置不對(盡量加在最后一行),或者加了后沒有運行命令"source ~/.bashrc"。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM