ROS (Robot Operating System) is a set of software libraries and tools that help developers build robot applications from inside another operating system such as Ubuntu. ROS provides hardware abstraction, device drivers, libraries, visualizers, message-passing, package management, and more.
There is a ROS release every year in May. Every ROS release will be supported on exactly one Ubuntu LTS. ROS releases will drop support for EOL (End Of Life) Ubuntu distributions, even if the ROS release is still supported. The ROS Kinetic release is currently supported only on Ubuntu 16.04.
You need to install the full Ubuntu desktop on the computer on which you are developing, and on the ARM-based computer (Raspberry Pi) you should install a much smaller operating system like Ubuntu Core. There are official builds of Ubuntu Core available for Raspberry Pi 2 and Raspberry Pi 3.
ROS Kinetic installation in Ubuntu 16.04
Configure your Ubuntu repositories to allow "restricted", "universe" and "multiverse".
Run these commands:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 0xB01FA116
sudo apt update
Select one of four default ROS configurations.
sudo apt install ros-kinetic-desktop-full # full desktop
sudo apt install ros-kinetic-desktop # desktop install
sudo apt install ros-kinetic-ros-base # no GUI
sudo apt install ros-kinetic-PACKAGE # individual package installation
To find available packages, use: apt-cache search ros-kinetic
and then replace PACKAGE
in ros-kinetic-PACKAGE
by one of the available packages found by apt-cache search ros-kinetic
Initialize rosdep
. rosdep
enables 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
Environment setup
echo "source /opt/ros/kinetic/setup.bash" >> ~/.bashrc
source ~/.bashrc
Get rosinstall
. rosinstall
enables you to easily download many source trees for ROS packages with one command.
sudo apt install python-rosinstall
To test your installation, visit the official ROS Tutorials.
ROS Melodic installation in Ubuntu 18.04
Configure your Ubuntu repositories to allow "restricted", "universe" and "multiverse".
Run these commands:
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116
sudo apt update
Select one of four default ROS configurations.
sudo apt install ros-melodic-desktop-full # full desktop
sudo apt install ros-melodic-desktop # desktop install
sudo apt install ros-melodic-ros-base # no GUI
sudo apt install ros-melodic-PACKAGE # individual package installation
To find available packages, use: apt-cache search ros-melodic
and then replace PACKAGE
in ros-melodic-PACKAGE
by one of the available packages found by apt-cache search ros-melodic
Initialize rosdep
. rosdep
enables 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
Environment setup
echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
source ~/.bashrc
Get rosinstall
. rosinstall
enables you to easily download many source trees for ROS packages with one command.
sudo apt install python-rosinstall-generator python-wstool build-essential
To test your installation, visit the official ROS Tutorials.
Source: Ubuntu install of ROS Kinetic, Ubuntu install of ROS Melodic