Ubuntu16.04 installation ROS Kinetic

ROS recently needed to control a car chassis, and then found not. . .
So write a blog about the recording for later review.

1. Set the Ubuntu software and updates

In the search box, enter software, select software and update item, check the main, universe, restricted and multiverse, and then select the Chinese server, and then close on the line.
Here Insert Picture Description
Here Insert Picture Description

2. Add source

If the speed is fast, it can be directly used official source, open the terminal enter the following command:

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

You can also use domestic raw:
USTC source

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

Tsinghua source

sudo sh -c '. /etc/lsb-release && echo "deb http://mirrors.tuna.tsinghua.edu.cn/ros/ubuntu/ `lsb_release -cs` main" > /etc/apt/sources.list.d/ros-latest.list'
3. Add the key
sudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
4. Update the Package Index
sudo apt update
5. Installation ROS

ROS has several installation modes, functions contained more or less, I chose to complete the installation.

sudo apt install ros-kinetic-desktop-full
6. initialization rosdep

rosdep may be compiled source mounting system dependent, and is run ROS certain core components required.

sudo rosdep init
rosdep update
7. Set Environment Variables

For every time you start a new terminal, ROS can still be used.

echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
8. Installation tools and other dependencies

ROS has been a core part of the installation is over, but there are some dependencies and build tools package.

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

Well this ROS on the installation, enter

roscore

If no error is that the installation was successful.
Here Insert Picture Description
The next step is to create a work space and functional package.
ROS create a work space to add packages and compile

Published 72 original articles · 87 won praise · Views 200,000 +

Guess you like

Origin blog.csdn.net/maizousidemao/article/details/103228172