第十一章编译fishbot_navigation2报错,求助!!!
-
终端日志如下
(base) hdm@hdm-virtual-machine:~/d2lros2/nav2_ws/src/fishbot_navigation2$ colcon build
[1.331s] WARNING:colcon.colcon_core.package_identification:Failed to parse ROS package manifest in '.': Error(s) in package './package.xml':
Error(s):- The generic dependency on 'nav2_bringup' is redundant with: exec_depend
Starting >>> fishbot_navigation2
--- stderr: fishbot_navigation2
Error parsing '/home/hdm/d2lros2/nav2_ws/src/fishbot_navigation2/package.xml':
Traceback (most recent call last):
File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 150, in <module>
main()
File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 53, in main
raise e
File "/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py", line 49, in main
package = parse_package_string(
File "/usr/lib/python3/dist-packages/catkin_pkg/package.py", line 786, in parse_package_string
raise InvalidPackage('Error(s):%s' % (''.join(['\n- %s' % e for e in errors])), filename)
catkin_pkg.package.InvalidPackage: Error(s) in package '/home/hdm/d2lros2/nav2_ws/src/fishbot_navigation2/package.xml':
Error(s): - The generic dependency on 'nav2_bringup' is redundant with: exec_depend
CMake Error at /opt/ros/humble/share/ament_cmake_core/cmake/core/ament_package_xml.cmake:95 (message):
execute_process(/usr/bin/python3.10
/opt/ros/humble/share/ament_cmake_core/cmake/core/package_xml_2_cmake.py
/home/hdm/d2lros2/nav2_ws/src/fishbot_navigation2/package.xml
/home/hdm/d2lros2/nav2_ws/src/fishbot_navigation2/build/fishbot_navigation2/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_lint_auto/cmake/ament_lint_auto_find_test_dependencies.cmake:31 (ament_package_xml)
CMakeLists.txt:21 (ament_lint_auto_find_test_dependencies)
Failed <<< fishbot_navigation2 [0.93s, exited with code 1]
Summary: 0 packages finished [1.63s]
1 package failed: fishbot_navigation2
1 package had stderr output: fishbot_navigation2 - The generic dependency on 'nav2_bringup' is redundant with: exec_depend
-
按照教程一步步来的,修改CMakeLists.txt和添加依赖都已经完成了
-
ubuntu版本22.04 ros2版本humble
-
@441755535 在 第十一章编译fishbot_navigation2报错,求助!!! 中说:
/nav2_ws/src/fishbot_navigation2$ colcon build
在 src 的同级目录编译