小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
ROS-Academy-for Beginners编译失败
-
CMake Error at /home/xxx/catkin_ws/devel/share/hector_mapping/cmake/hector_mappingConfig.cmake:113 (message):
Project 'hector_mapping' specifies
'/home/xxx/catkin_ws/src/hector_slam/hector_mapping/include' as an
include dir, which is not found. It does neither exist as an absolute
directory nor in
'/home/xxx/catkin_ws/src/hector_slam/hector_mapping//home/xxx/catkin_ws/src/hector_slam/hector_mapping/include'.我到该文件夹下查看发现hector_mapping下确实没有include这个文件,Ubuntu18.04 ,ROS melodic版
请大神帮我看看,本人刚入门ROS -
@gegegugu45 前置有什么操作?用的什么源码?
-
@小鱼 前置几乎没啥操作,ROS源码来源于下面这篇CSDN中的百度云盘分享,步骤也同(之前有一步骤,安装所需的依赖这部分有报错)
rosdep install --from-paths src --ignore-src --rosdistro=melodic -y会说已被占用无法获取
CSDN地址:https://blog.csdn.net/weixin_44521188/article/details/113047991?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522166823264616782391841975%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=166823264616782391841975&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-113047991-null-null.142^v63^control_1,201^v3^add_ask,213^v2^t3_esquery_v2&utm_term=ROS-Academy-for-Beginners教学&spm=1018.2226.3001.4187 -
@小鱼 刚才又尝试下载了一遍,这次貌似是镜像源的问题
rosdep install --from-paths src --ignore-src --rosdistro=melodic -y
报错如下:
E: 无法下载 http://mirrors.ustc.edu.cn/ros/ubuntu/pool/main/r/ros-melodic-yocs-cmd-vel-mux/ros-melodic-yocs-cmd-vel-mux_0.8.2-0bionic.20221025.202253_amd64.deb 无法解析域名“mirrors.ustc.edu.cn”
E: 有几个软件包无法下载,要不运行 apt-get update 或者加上 --fix-missing 的选项再试试?
ERROR: the following rosdeps failed to install
apt: command [sudo -H apt-get install -y ros-melodic-yocs-cmd-vel-mux] failed -
@gegegugu45 问题有点乱哈,这三个问题之间看起来没啥关联性,应该是你哪里搞错了
针对第三个错误,可以试试用一键安装跑一遍,或者用下面指令试试
apt-get update sudo -H apt-get install -y ros-melodic-yocs-cmd-vel-mux --fix-missing
@gegegugu45 在 ROS-Academy-for Beginners编译失败 中说:
E: 无法下载 http://mirrors.ustc.edu.cn/ros/ubuntu/pool/main/r/ros-melodic-yocs-cmd-vel-mux/ros-melodic-yocs-cmd-vel-mux_0.8.2-0bionic.20221025.202253_amd64.deb 无法解析域名“mirrors.ustc.edu.cn”