ROS study notes (1) (installation of the kinetic version of ROS)

1. Install ROS system. The
use environment is the official mirror of UBUNTU16.04. The download URL is: https://pan.baidu.com/s/1GnvKaHol4dDfKdPJKtweww

1. First select the software source of ROS, here we choose the mirror source of Sun Yat-sen University, enter the command in the terminal:

sudo sh -c '. /etc/lsb-release && echo "deb http://mirror.sysu.edu.cn/ros/uauntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'


2. Then use the following command to add the key:

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

3. Then we update the software source to update the previously modified software source, enter the command:

sudo apt-get update

4. Here we directly install the full version of ROS for the convenience of later use, enter the command:

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

5. Then we can install the independent function package according to the demand, the PACKAGE in the instruction is the name of the function package to be installed,

sudo apt-get install ros-kinetic-slam-PACKAGE

6. Then we initialize the rosdep tool and directly enter the following two commands:

sudo rosdep init
rosdep update

7. Then we set the environment variable, the default terminal used by the environment variable in UBUNTU is bash, we enter the following command:

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

source ~/.bashrc

Now that we have initially completed the installation of the ROS system, we finally install a development tool that we may use:

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

Here we have completed the installation of ROS, the first part of the notes is here

Guess you like

Origin blog.csdn.net/weixin_41407439/article/details/100899042