ROS16.04 18.04安装注意事项与报错

ROS操作系统与ubuntu操作系统具有对应关系
Ubuntu16.04 + Kinetic版本
Ubuntu18.04 + melodic版本
Ubuntu20.04 + Noetic版本

1. 安装前在软件与更新界面全选

2. 安装前勾选推荐更新与释放更新

3. sudo rosdep init出错

3.1 ca-certificates问题

sudo apt-get install ca-certificates
3.2 系统时间同步问题
sudo apt-get install ntpdate
sudo ntpdate cn.pool.ntp.org
sudo hwclock --systohc
3.3 ssl certs问题
sudo c_rehash /etc/ssl/certs 
sudo -E rosdep init
3.4 python-rosdep问题
sudo apt-get install python-rosdep

4. rosdep update出错

4.1 sudo mkdir /ros/rosdep/sources.list.d/20-default.list再它下面手动创建20-default.list文件

# os-specific listings first
#yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml osx
yaml file:///etc/ros/master/rosdep/osx-homebrew.yaml osx
# generic
#yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/base.yaml
#yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/python.yaml
#yaml https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/ruby.yaml
#gbpdistro https://raw.githubusercontent.com/ros/rosdistro/master/releases/fuerte.yaml fuerte
 
yaml file:///etc/ros/master/rosdep/base.yaml
yaml file:///etc/ros/master/rosdep/python.yaml
yaml file:///etc/ros/master/rosdep/ruby.yaml
gbpdistro file:///etc/ros/master/releases/fuerte.yaml fuerte
# newer distributions (Groovy, Hydro, ...) must not be listed anymore, they are being fetched from the rosdistro index.yaml instead

4.2 下载master文件到/etc/ros/文件下(或从其他地方下载,根据/etc/ros/master/rosdep/等路径创建)
https://github.com/sxs505/ROS_rosdep

https://download.csdn.net/download/weixin_46214675/19328319

4.3 sudo gedit /usr/lib/python2.7/dist-packages/rosdistro/init.py

注释原有代码行

#DEFAULT_INDEX_URL = 'https://raw.githubusercontent.com/ros/rosdistro/master/index-v4.yaml'
DEFAULT_INDEX_URL = 'file:///etc/ros/rosdistro/master/index-v4.yaml'

5. roscore报错

添加以下语句到source之前

export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
export PATH=/usr/local/cuda-10.2/bin:$PATH 

6. catkin_make失败

可以尝试使用

catkin_make_isolated

7. 依赖问题

sudo apt-get install aptitude
sudo aptitude install ***
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

_cv_

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值