Installation environment for Ubuntu 16.04
Configuring the Ubuntu Software repository
Open software and updates in Settings
Hook up the three items "restricted", "universe" and "Multiverse"
Close after check out
Add source
[Email protected]:~$ sudo sh-c ' echo "Deb Http://packages.ros.org/ros/ubuntu $ (LSB_RELEASE-SC) main" >/etc/apt/sourc Es.list.d/ros-latest.list '
Add keys
[Email protected]:~$ sudo apt-key adv--keyserver hkp://ha.pool.sks-keyservers.net:80--recv-key 421c365bd9ff1f717815a3895523baeeb01fa116
Ensure that the index of the package is up to date
[Email protected]:~$ sudo apt-get update
Installing ROS
Desktop full version: (recommended): Includes Ros, RQT, Rviz, Robotics Universal Library, 2d/3d Simulator, navigation, and 2d/3d sensing
[Email protected]:~$ sudo apt-get install Ros-kinetic-desktop-full
Desktop installation: Contains Ros, RQT, Rviz, and general-purpose robotic libraries
sudo apt-get install Ros-kinetic-desktop
Basic Installation: (Lite Edition) contains Ros core packages, build tools, and communication-related libraries, no GUI tools
sudo apt-get install Ros-kinetic-ros-base
Single Package Installation: You can also install a specific ROS package (use the package name to replace the packages below)
sudo apt-get install ros-kinetic-package For example: sudo apt-get install ros-kinetic-slam-gmapping
After the installation is complete, if you want to find available packages
[Email protected]:~$ apt-cache Search Ros-kinetic
Initialize ROSDEP
[Email protected]:~$ sudo rosdep init
After executing the command, you will be prompted to perform ROSDEP update
[Email protected]:~$ rosdep Update
Environment configuration
[Email protected]:~$ echo "Source/opt/ros/kinetic/setup.bash" >> ~/.bashrc[email protected]:~$ Source ~/.BASHRC
Restart Ubuntu
Installation of ROS Kinetic under Ubuntu