ARM架构安装ROS系统

36 篇文章 0 订阅
7 篇文章 0 订阅

ARM架构安装ROS系统

说明:

ROS版本Kinetic适配Ubuntu16.04系统,Ubuntu系统代号: xenial
ROS版本Melodic适配Ubuntu18.04系统,Ubuntu系统代号: bionic

APT源:

更换阿里云源

下面bionic 需要改为 xenial,参考:https://www.cnblogs.com/yongy1030/p/10315569.html

$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bk
$ sudo vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu-ports/ bionic-proposed main restricted universe multiverse

用中科大的源

$ sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
$ sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

如果上一步骤有错,多尝试几次,实在不行:

$ sudo apt-key adv --keyserver 'hkp://pgp.mit.edu:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
$ sudo apt update
$ sudo apt install ros-melodic-ros-base  # 这个地方改为版本kinetic,ros-kinetic-ros-base
$ echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc  # 这个地方改为版本kinetic,ros-kinetic-ros-base
$ sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
$ source ~/.bashrc

如果显示.bashrc没有权限则增加777权限

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
sudo apt update
sudo apt install ros-kinetic-ros-base
#echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc# 失败
echo "source /opt/ros/kinetic/setup.bash" >> /home/ubuntu/.bashrc# 在root用户下运行
source ~/.bashrc
sudo apt install python-rosdep python-rosinstall python-rosinstall-generator python-wstool build-essential
sudo apt install python-rosdep
#sudo rosdep init
#rosdep update

具体安装方法

参考ROS Kinetic版本安装官网:

http://wiki.ros.org/kinetic/Installation/Ubuntu

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值