嘗試使用 WSL Ubuntu 來使用 ROS

嘗試使用 WSL Ubuntu 來使用 ROS

所以我一直在嘗試使用WSL ubuntu應用程序,以便我可以使用這個ROS,但我並不完全明白我做錯了什麼。我試圖使用這個命令列:

$ catkin_make

但隨後它會說我有某種導入錯誤,看在上帝的份上,我根本不知道該如何解決:

Base path: /home/thickmelon/catkin_ws
Source space: /home/thickmelon/catkin_ws/src
Build space: /home/thickmelon/catkin_ws/build
Devel space: /home/thickmelon/catkin_ws/devel
Install space: /home/thickmelon/catkin_ws/install
####
#### Running command: "make cmake_check_build_system" in "/home/thickmelon/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/thickmelon/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
-- This workspace overlays: /opt/ros/melodic
-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.8", minimum required is "2")
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/thickmelon/catkin_ws/build/test_results
-- Found gmock sources under '/usr/src/googletest': gmock will be built
-- Found PythonInterp: /usr/bin/python3 (found version "3.6.8")
-- Found gtest sources under '/usr/src/googletest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/bin/python3
  "/opt/ros/melodic/share/catkin/cmake/parse_package_xml.py"
  "/opt/ros/melodic/share/catkin/cmake/../package.xml"
  "/home/thickmelon/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/melodic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
  /opt/ros/melodic/share/catkin/cmake/all.cmake:167 (_catkin_package_xml)
  /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:56 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/thickmelon/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/thickmelon/catkin_ws/build/CMakeFiles/CMakeError.log".
Makefile:320: recipe for target 'cmake_check_build_system' failed
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed

並輸入此命令列:

$ cd ~/catkin_ws/src

會產生這樣的結果:

bash: cd: /root/catkin_ws/src: No such file or directory

儘管我什至無法在計算機上的任何資料夾中找到這個所謂的目錄“目錄”,這對我來說真是令人困惑。

我需要安裝其他東西嗎?或者我應該在提示不斷談論的目錄中建立一個名為 src 的新資料夾?

相關內容