ROS2 CMake 빌드 오류 해결 (catkin_pkg 관련)

ROS2 빌드 오류 처리 오류 메시지 ModuleNotFoundError: No module named `catkin_pkg` CMake Error at /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:95 (message): execute_process(/home/{user}/.pyenv/shims/python3.10 /opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py /home/{user_project_path}/src/test_pubsub/package.xml /home/{user_project_path}/build/test_pubsub/ament_cmake_core/package.cmake) returned error code 1 Call Stack (most recent call first): /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:49 (_ament_package_xml) /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package.cmake:63 (ament_package_xml) CMakeLists.txt:31 (ament_package) 오류 해결 방법 해당 오류는 Python catkin_pkg 가 없어서 발생한 오류로 해당 패키지를 설치하면 됨 pip install catkin_pkg

March 29, 2023 · 1 min