小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
动手学ros2的11章节,编译nav2包报错问题
-
ubuntu22.04,humble,通过代理克隆了nav2的包后进行编译,然后报错,编译路径为工作空间下面,结果报错```
~/chapt8_ws$ colcon build --packages-up-to navigation2
[0.726s] WARNING:colcon.colcon_core.package_selection:Some selected packages are already built in one or more underlay workspaces:
'nav2_amcl' is in: /opt/ros/humble
'navigation2' is in: /opt/ros/humble
'nav2_map_server' is in: /opt/ros/humble
'nav2_navfn_planner' is in: /opt/ros/humble
'nav2_common' is in: /opt/ros/humble
'nav2_behavior_tree' is in: /opt/ros/humble
'nav2_lifecycle_manager' is in: /opt/ros/humble
'nav2_msgs' is in: /opt/ros/humble
'nav2_planner' is in: /opt/ros/humble
'nav2_util' is in: /opt/ros/humble
If a package in a merged underlay workspace is overridden and it installs headers, then all packages in the overlay must sort their include directories by workspace order. Failure to do so may result in build failures or undefined behavior at run time.
If the overridden package is used by another package in any underlay, then the overriding package in the overlay must be API and ABI compatible or undefined behavior at run time may occur.If you understand the risks and want to override a package anyways, add the following to the command line:
--allow-overriding nav2_amcl nav2_behavior_tree nav2_common nav2_lifecycle_manager nav2_map_server nav2_msgs nav2_navfn_planner nav2_planner nav2_util navigation2This may be promoted to an error in a future release of colcon-override-check.
Starting >>> nav2_common
Starting >>> nav_2d_msgs
Finished <<< nav2_common [0.55s]
Starting >>> nav2_msgs
Starting >>> nav2_voxel_grid
Finished <<< nav_2d_msgs [1.37s]
Starting >>> dwb_msgs
Finished <<< nav2_msgs [2.56s]
Starting >>> nav2_util
Starting >>> nav2_simple_commander
Finished <<< dwb_msgs [2.05s]
--- stderr: nav2_simple_commander
/usr/lib/python3/dist-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(Finished <<< nav2_simple_commander [0.79s]
--- stderr: nav2_util
CMake Error at test/CMakeLists.txt:7 (find_package):
By not providing "Findtest_msgs.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"test_msgs", but CMake did not find one.Could not find a package configuration file provided by "test_msgs" with
any of the following names:test_msgsConfig.cmake test_msgs-config.cmake
Add the installation prefix of "test_msgs" to CMAKE_PREFIX_PATH or set
"test_msgs_DIR" to a directory containing one of the above files. If
"test_msgs" provides a separate development package or SDK, be sure it has
been installed.gmake: *** [Makefile:436:cmake_check_build_system] 错误 1
Failed <<< nav2_util [1.13s, exited with code 2]
Aborted <<< nav2_voxel_grid [4.83s]Summary: 5 packages finished [6.21s]
1 package failed: nav2_util
1 package aborted: nav2_voxel_grid
2 packages had stderr output: nav2_simple_commander nav2_util
29 packages not processed
试过下载了这个test-msgs包,再次编译后电脑死机了
-
-
@3054163659 你好,你解决了吗,我也有这个问题