Ubuntu18.04安装ROS Melodic报错综合解决办法

1.下载Ubuntu 时,去国内镜像源下载速度可提快
2.安装时,参考
https://blog.csdn.net/CH_monsy/article/details/107346203?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromMachineLearnPai2-1.channel_param
3.但是到第四步时可能报错:
sudo: rosdep:找不到命令
执行sudo apt install rospack-tools
再次执行
sudo rosdep init
报错:
ERROR: cannot download default sources list from:
https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/sources.list.d/20-default.list
Website may be down.
报错原因是GitHub的raw.githubusercontent.com无法连接
需要解决GitHub的raw.githubusercontent.com无法连接问题
通过IPAddress.com首页,输入raw.githubusercontent.com查询到真实IP地址
修改hosts Ubuntu,
sudo gedit /etc/hosts (为什么不使用vi打开,vi打开进入编辑模式时,不能正确输入)
添加以下内容保存即可
199.232.28.133 raw.githubusercontent.com 然后保存,关闭文件
然后输入sudo rosdep init就可以了

4.使用roscore测试时,报错:
“Command ‘roscore‘ not found, but can be installed with: sudo apt install python-roslaunch“

执行sudo apt-get install ros-melodic-desktop
source ~/.bashrc
5.再次执行roscore
6.以下顺序按链接中的步骤执行

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值