无法下载cartographer和navigation源码,自己手动下载后,又无法编译cartographer源码
-
使用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) -
编译carto报错图片,( 图片地址)
-
我得环境是vm虚拟机+ubuntu22.04+ros2 humble版本