Ubuntu16.04 安装ROS

1.设置sources.list

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'

2.设置Key

sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

3.安装

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install ros-kinetic-desktop-full

4.初始化rosdep

sudo rosdep init
rosdep update

5.环境配置

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc

6.安装构建ROS包的依赖

sudo apt install python-rosinstall python-rosinstall-generator python-wstool build-essential 

7.测试

打开终端,输入以下命令测试:

roscore

Ubuntu16.04 安装ROS_第1张图片

你可能感兴趣的:(Linux/Ubuntu,ROS)