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

    dashing版安装navigation2报错rosdepc还有colcon build

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

      wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ rosdepc install -r --from-paths src --ignore-src --rosdistro $ROS_DISTRO -y

      欢迎使用国内版rosdep之rosdepc,我是作者小鱼!
      欢迎关注公众号《鱼香ROS》加入交流群
      小鱼rosdepc正式为您服务


      ERROR: the following packages/stacks could not have their rosdep keys resolved
      to system dependencies:
      nav2_behavior_tree: Cannot locate rosdep definition for [behaviortree_cpp_v3]
      nav2_bringup: Cannot locate rosdep definition for [slam_toolbox]
      smac_planner: Cannot locate rosdep definition for [ompl]
      nav2_bt_navigator: Cannot locate rosdep definition for [behaviortree_cpp_v3]
      nav2_util: Cannot locate rosdep definition for [launch_testing_ament_cmake]
      Continuing to install resolvable dependencies...
      #All required rosdeps installed successfully

      如果在使用过程中遇到任何问题,欢迎通过fishros.org.cn反馈,最后加入QQ交流群 686914208(入群口令:一键安装)

      wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ colcon build --packages-up-to navigation2
      Starting >>> nav2_common
      Starting >>> nav_2d_msgs
      Finished <<< nav2_common [0.50s]
      Starting >>> nav2_msgs
      Starting >>> nav2_voxel_grid
      Finished <<< nav_2d_msgs [10.3s]
      Starting >>> dwb_msgs
      Finished <<< nav2_voxel_grid [13.1s]
      Finished <<< dwb_msgs [18.9s]
      Finished <<< nav2_msgs [36.6s]
      Starting >>> nav2_util
      --- stderr: nav2_util
      CMake Error at CMakeLists.txt:47 (find_package):
      By not providing "Findlaunch_testing_ament_cmake.cmake" in
      CMAKE_MODULE_PATH this project has asked CMake to find a package
      configuration file provided by "launch_testing_ament_cmake", but CMake did
      not find one.

      Could not find a package configuration file provided by
      "launch_testing_ament_cmake" with any of the following names:

      launch_testing_ament_cmakeConfig.cmake
      launch_testing_ament_cmake-config.cmake
      

      Add the installation prefix of "launch_testing_ament_cmake" to
      CMAKE_PREFIX_PATH or set "launch_testing_ament_cmake_DIR" to a directory
      containing one of the above files. If "launch_testing_ament_cmake"
      provides a separate development package or SDK, be sure it has been
      installed.


      Failed <<< nav2_util [3.01s, exited with code 1]

      Summary: 5 packages finished [40.4s]
      1 package failed: nav2_util
      1 package had stderr output: nav2_util
      22 packages not processed
      wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ navigation2
      navigation2:未找到命令
      wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ source install/setup.bash
      wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ ros2 pkg list | grep navigation2
      wangjian@wangjian-Lenovo-Legion-Y7000:~/fishbot_ws$ navigation2
      navigation2:未找到命令

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

        @3508827352 手动安装下 sudo apt install ros-你的ROS版本代号-launch-testing-ament-cmake

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

        1 条回复 最后回复 回复 引用 0
        • 小鱼小
          小鱼 技术大佬 @3508827352
          最后由 编辑

          @3508827352 另外注意格式

          @小鱼 在 提问前必看!一定要看!必须看一下! 中说:

          问题一定要描述清楚,终端打印一定复制粘贴,方便回答者检索和引用(你可以在linux系统上打开浏览器进社区)
          基本的Markdown语法一定要学习下,有的小伙伴图片代码一团糟
          提问时一定要提供尽可能多的信息(系统版本,ROS版本,前后操作,终端日志),包括你的目的,比如你其实想装装某个库遇到问题,不要只说这个问题,因为可能有更好的替代方案

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

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

            @3508827352 你好,我也遇到了和你一样的问题,colcon build失败,请问您解决了吗

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