@毛哥成山轮胎机油保养 在 ros2机器人foxy版用笔记本摄像头跑单目orb_slam3 中说:
zang09
xin@MOSS:~/Code/Test$ colcon build --symlink-install --packages-select orbslam3
Starting >>> orbslam3
--- stderr: orbslam3
Traceback (most recent call last):
File "/opt/ros/rolling/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py", line 21, in <module>
from ament_package.templates import get_environment_hook_template_path
ModuleNotFoundError: No module named 'ament_package'
CMake Error at /opt/ros/rolling/share/ament_cmake_core/cmake/ament_cmake_package_templates-extras.cmake:41 (message):
execute_process(/usr/bin/python3.10
/opt/ros/rolling/share/ament_cmake_core/cmake/package_templates/templates_2_cmake.py
/home/xin/Code/Test/build/orbslam3/ament_cmake_package_templates/templates.cmake)
returned error code 1
Call Stack (most recent call first):
/opt/ros/rolling/share/ament_cmake_core/cmake/ament_cmake_coreConfig.cmake:41 (include)
/opt/ros/rolling/share/ament_cmake/cmake/ament_cmake_export_dependencies-extras.cmake:15 (find_package)
/opt/ros/rolling/share/ament_cmake/cmake/ament_cmakeConfig.cmake:41 (include)
CMakeLists.txt:18 (find_package)
---
Failed <<< orbslam3 [0.32s, exited with code 1]
Summary: 0 packages finished [0.42s]
我编译的时候遇到这个问题,可以帮我看看吗