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

    无法下载cartographer和navigation源码,自己手动下载后,又无法编译cartographer源码

    已定时 已固定 已锁定 已移动 未解决
    ROS 2相关问题
    cartographer navigation2 下载的有关nav2包编译出错
    1
    3
    294
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 4290162674
      h1
      最后由 编辑

      使用git clone --recursive https://github.com/fishros/fishbot.git -b v1.0.0 --depth=1
      cd fishbot
      rosdep install --from-paths src --ignore-src -y -r # 安装依赖
      colcon build下载源码,无法下载cartographer和navigation源码,报错 重定向:http://ww3.91chi.fun/?sub1=90563160-ae8f-11ee-b3d1-c2900044a4dd
      fatal: 无法克隆 'https://github.91chi.fun/https://github.com/ros2/cartographer.git' 到子模组路径 '/home/zlkj/Desktop/gong_xiang/yuan_ma1/fishbot/src/cartographer_code/cartographer'
      克隆 'src/cartographer_code/cartographer' 失败。按计划重试
      正克隆到 '/home/zlkj/Desktop/gong_xiang/yuan_ma1/fishbot/src/cartographer_code/cartographer_ros'...
      warning: 您似乎克隆了一个空仓库。
      正克隆到 '/home/zlkj/Desktop/gong_xiang/yuan_ma1/fishbot/src/navigation'...
      warning: 您似乎克隆了一个空仓库。
      正克隆到 '/home/zlkj/Desktop/gong_xiang/yuan_ma1/fishbot/src/cartographer_code/cartographer'...
      warning: 您似乎克隆了一个空仓库。
      error: inflate: data stream error (incorrect header check)
      error: File 2ce33a65bd4e41e3bf5af92c9275354ce7921c70 (https://github.91chi.fun/https://github.com/ros2/cartographer.git/objects/2c/e33a65bd4e41e3bf5af92c9275354ce7921c70) corrupt
      error: Unable to find 2ce33a65bd4e41e3bf5af92c9275354ce7921c70 under https://github.91chi.fun/https://github.com/ros2/cartographer.git
      Cannot obtain needed object 2ce33a65bd4e41e3bf5af92c9275354ce7921c70
      error: 获取失败。
      fatal: 获取了子模组路径 'src/cartographer_code/cartographer',但是它没有包含 2ce33a65bd4e41e3bf5af92c9275354ce7921c70。直接获取该提交失败。
      fatal:

      2:后续自己手动下载这里两部分源码,在编译cartographer时候,报错:home/zlkj/Desktop/gong xiang/yuan ma/fishbot/src/cartographer_code/cartographercartographer/common/thread pool,h:73:63: error:"mutexhas not been declaredvoid NotifyDependenciesCompleted(Task* task) LOCKS EXCLUDED(mutex ) ov73erride;
      home/zlkj/Desktop/gong xiang/yuan ma/fishbot/src/cartographer_code/cartographercartographer/common/thread pool.h:73:48: error: ISO C++ forbids declaration ofLOCKS EXCLUDED’ with no type [-fpermissive]73void NotifyDependenciesCompleted(Task* task) LOCKS_EXCLUDED(mutex ) override;
      home/zlkj/Desktop/gong xiang/yuan ma/fishbot/src/cartographer_code/cartographercartographer/common/thread poolh:73:48: error: int cartographer::common::thredPool::LOCKS EXCLUDED(int)’ cannot be overloaded with "int cartographer::common::Threadpool::LOCKS EXCLUDED(int)

      4290162674 1 条回复 最后回复 回复 引用 0
      • 4290162674
        h1 @429016267
        最后由 编辑

        编译carto报错图片,(b1535f9c4ec96e2aac14e3d31643da3.png 图片地址)

        1 条回复 最后回复 回复 引用 0
        • 4290162674
          h1
          最后由 编辑

          我得环境是vm虚拟机+ubuntu22.04+ros2 humble版本

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