鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    动手学ros2的11章节,编译nav2包报错问题

    已定时 已固定 已锁定 已移动 未解决
    综合问题
    nav2 ros2-humble
    3
    3
    574
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 3
      粉肠
      最后由 3054163659 编辑

      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 navigation2

      This 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
      截图 2024-04-17 22-20-55.jpg

      试过下载了这个test-msgs包,再次编译后电脑死机了

      小鱼小 26932262522 2 条回复 最后回复 回复 引用 0
      • 小鱼小
        小鱼 技术大佬 @3054163659
        最后由 编辑

        @3054163659 https://fishros.org.cn/forum/topic/151/提问前必看-不符合要求的问题拒绝回答

        新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

        1 条回复 最后回复 回复 引用 0
        • 26932262522
          命里有我 @3054163659
          最后由 编辑

          @3054163659 你好,你解决了吗,我也有这个问题

          1 条回复 最后回复 回复 引用 0
          • 第一个帖子
            最后一个帖子
          皖ICP备16016415号-7
          Powered by NodeBB | 鱼香ROS