本文简要介绍了ROS Kinetic如何在Ubuntu 16.04 Desktop环境如何安装。
安装步骤如下:
1. 配置Ubuntu仓库使其支持"restricted," "universe," and "multiverse."
参考:https://help.ubuntu.com/community/Repositories/Ubuntu
2. 添加ROS相关源
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
3. 配置key
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA1164. 更新源
sudo apt-get update
5. 安装ROS相关包和库
sudo apt-get install ros-kinetic-desktop-full
6. 初始化rosdep
sudo rosdep init rosdep update
7.配置ROS环境变量
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc source ~/.bashrc
8. 安装常用工具rosinstall
sudo apt-get install python-rosinstall