Under ROS installation of Ubuntu 16.04

ROS installation

Environmental Information: Ubuntu 16.04

ROS version: kinetic

Hardware Information: Love Machine White

1. Change the software source:

Here Insert Picture Description

Here Insert Picture Description

Arrow refers to all checked, the last check may or may not be checked

"Download to" choose Tsinghua source

2. Begin the installation, followed by executing the following command

sudo apt-get update

ROS source software then added, following Tsinghua source, useful pro-test

`sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'`

Here is the USTC source, if the source installation Tsinghua slow, you can try USTC source, in general, Tsinghua is relatively fast, I installed it only took about 5 minutes.

`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'

Above a selected two sources, the next step

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


sudo apt-get update


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

At this point no problem, then it became a basic

Next, initialize rosdep

sudo rosdep init
rosdep update

I went to this step, there is a problem, sudo rosdep init could not be initialized, the specific error forget to save, I tried a number of ways the Internet does not work, then did not ignore it, after a day re-initialized it. I think it should be a network problem, this step if you are experiencing problems, we recommend using a hot phone to try, or even a vpn try? It is not, skip this step and install the dependencies.

ok, if you do not have a problem, then the final step, install dependencies

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

You're done, give this a try

3. Test

Open a terminal input

roscore

This command starts the master node of ROS, the following picture
Here Insert Picture Description
if we can start Congratulations on your successful installation!

There is also a small turtle online tutorials, test, not repeat them here.

Published an original article · won praise 0 · Views 4

Guess you like

Origin blog.csdn.net/qq_41484927/article/details/105226015