小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
[FishBot教程]7. FishBot-Nav2导航测试
-
@2462331351 换个github代理试试
-
@小鱼 换了,发现还是不行,我去我的windows(可以正常Google的)发现还是有错误```
Failed to clone 'src/cartographer_code/cartographer'. Retry scheduled
Cloning into 'C:/Users/ZDD/fishbot/src/cartographer_code/cartographer_ros'...
fatal: unable to access 'https://github.91chi.fun/https://github.com/ros2/cartographer_ros.git/': Recv failure: Connection was reset
fatal: clone of 'https://github.91chi.fun/https://github.com/ros2/cartographer_ros.git' into submodule path 'C:/Users/ZDD/fishbot/src/cartographer_code/cartographer_ros' failed
Failed to clone 'src/cartographer_code/cartographer_ros'. Retry scheduled
Cloning into 'C:/Users/ZDD/fishbot/src/navigation'...
fatal: unable to access 'https://github.91chi.fun/https://github.com/fishros/navigation2.git/': Recv failure: Connection was reset
fatal: clone of 'https://github.91chi.fun/https://github.com/fishros/navigation2.git' into submodule path 'C:/Users/ZDD/fishbot/src/navigation' failed
Failed to clone 'src/navigation'. Retry scheduled
Cloning into 'C:/Users/ZDD/fishbot/src/cartographer_code/cartographer'...
fatal: unable to access 'https://github.91chi.fun/https://github.com/ros2/cartographer.git/': Recv failure: Connection was reset
fatal: clone of 'https://github.91chi.fun/https://github.com/ros2/cartographer.git' into submodule path 'C:/Users/ZDD/fishbot/src/cartographer_code/cartographer' failed
Failed to clone 'src/cartographer_code/cartographer' a second time, aborting -
-
@小鱼 我不太明白,请问
这个代理怎么换呀 -
此回复已被删除! -
我在运行sudo apt install ros-humble-joint-state-publisher发生下面的错误,我换源了但是还是会从清华源下载,真不知道怎么办了我的小车都连上了
code_text 正在读取软件包列表... 完成 正在分析软件包的依赖关系树... 完成 正在读取状态信息... 完成 下列【新】软件包将被安装: ros-humble-joint-state-publisher 升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 383 个软件包未被升级。 需要下载 16.1 kB 的归档。 解压缩后会消耗 68.6 kB 的额外空间。 忽略:1 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main amd64 ros-humble-joint-state-publisher amd64 2.4.0-1jammy.20240728.222620 忽略:1 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main amd64 ros-humble-joint-state-publisher amd64 2.4.0-1jammy.20240728.222620 忽略:1 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main amd64 ros-humble-joint-state-publisher amd64 2.4.0-1jammy.20240728.222620 错误:1 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu jammy/main amd64 ros-humble-joint-state-publisher amd64 2.4.0-1jammy.20240728.222620 无法发起与 mirrors.tuna.tsinghua.edu.cn:80 (2402:f000:1:400::2) 的连接 - connect (101: 网络不可达) 无法连接上 mirrors.tuna.tsinghua.edu.cn:80 (101.6.15.130),连接超时 E: 无法下载 http://mirrors.tuna.tsinghua.edu.cn/ros2/ubuntu/pool/main/r/ros-humble-joint-state-publisher/ros-humble-joint-state-publisher_2.4.0-1jammy.20240728.222620_amd64.deb 无法发起与 mirrors.tuna.tsinghua.edu.cn:80 (2402:f000:1:400::2) 的连接 - connect (101: 网络不可达) 无法连接上 mirrors.tuna.tsinghua.edu.cn:80 (101.6.15.130),连接超时 E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试? zdd@zdd-Lenovo-YangTian-S550-14-API:~/fishbot$ ^C zdd@zdd-Lenovo-YangTian-S550-14-API:~/fishbot$ ```
-
我在运行到最后一步时,雷达镜像出现了下面的问题:```
[WARN] [1724764700.139124810] [ydlidar_node]: New subscription discovered on topic '/scan', requesting incompatible QoS. No messages will be sent to it. Last incompatible policy: RELIABILITY_QOS_POLICY -
@2462331351 这个不是错误,可以忽略
-
@2462331351 在 [FishBot教程]7. FishBot-Nav2导航测试 中说:
sudo apt --fix-missing
-
一、下载与编译导航代码
打开终端,输入下面的指令。
git clone 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执行最后一步colcon build报错
以下是报错信息:
colcon build
Starting >>> fishbot_bringup
Starting >>> fishbot_cartographer
Starting >>> fishbot_description
Starting >>> fishbot_interfaces
Starting >>> fishbot_navigation2
Finished <<< fishbot_cartographer [1.76s]
Finished <<< fishbot_navigation2 [1.83s]
--- stderr: fishbot_interfaces
CMake Error at /opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:240 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
CMakeLists.txt:29 (rosidl_generate_interfaces)CMake Error at /opt/ros/humble/share/rosidl_generator_c/cmake/rosidl_generator_c_generate_interfaces.cmake:69 (message):
Target dependency
'/fishbot/build/fishbot_interfaces/rosidl_adapter/fishbot_interfaces/srv/FishBotConfig.idl'
does not exist
Call Stack (most recent call first):
/opt/ros/humble/share/ament_cmake_core/cmake/core/ament_execute_extensions.cmake:48 (include)
/opt/ros/humble/share/rosidl_cmake/cmake/rosidl_generate_interfaces.cmake:286 (ament_execute_extensions)
CMakeLists.txt:29 (rosidl_generate_interfaces)
Failed <<< fishbot_interfaces [4.23s, exited with code 1]
Aborted <<< fishbot_description [4.57s]
Aborted <<< fishbot_bringup [35.8s]Summary: 2 packages finished [36.8s]
1 package failed: fishbot_interfaces
2 packages aborted: fishbot_bringup fishbot_description
1 package had stderr output: fishbot_interfaces -
@HermitWJ 问一下你的操作系统版本信息,还有你把代码放到了哪个位置,不要放桌面之类的奇怪位置哦
-
我这边的配置和鱼哥的一模一样,,ROS2humle,ubuntu22.04,但是我发现我在进行导航的时候啊,就是会小车走到一半就会终止,
就像这样,请问这是怎么回事呢 -
@2462331351 图太乱了,没有空间给小车走
-
@小鱼 感谢小鱼,问题已解决
-
@921203724 你这个问题解决了吗,我出现了同样的问题。@小鱼
-
出现这个错误了,该怎么解决呢?rosdep已经用一键安装配置好了。 -
@ros_freshman 可以跳过