ROS Ubuntu 安装

前端之家收集整理的这篇文章主要介绍了ROS Ubuntu 安装前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

安装最新LTS 版本 ROS:

ROS Kinetic Kame
Released May,2016
LTS,supported until April,2021

1. Setup your 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. Set up your keys

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


3.Installation

First,make sure your Debian package index is up-to-date:

  • sudo apt-get update

Desktop-Full Install: (Recommended): ROS,rqt,rviz,robot-generic libraries,2D/3D simulators,navigation and 2D/3D perception

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


4.Initialize rosdep

Before you can use ROS,you will need to initializerosdep.rosdepenables you to easily install system dependencies for source you want to compile and is required to run some core components in ROS.

sudo rosdep init
rosdep update

5.Environment setup

It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:

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

6.Getting rosinstall

rosinstallis a frequently used command-line tool in ROS that is distributed separately. It enables you to easily download many source trees for ROS packages with one command.

To install this tool on Ubuntu,run:

sudo apt-get install python-rosinstall

7. 卸载ROS(将ROS从电脑完全移除)

sudo apt-get remove ros-*

8. ROS 官方教程

http://wiki.ros.org/ROS/Tutorials


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

原文链接:https://www.f2er.com/ubuntu/352754.html

猜你在找的Ubuntu相关文章