David Williams Technical


Endpoint Management & Deployment – MDM Management – Scripting – Cyber Security Engineering – Application Configuration & Deployment

Install ROS Kinetic for Ubuntu

This set of instructions is for installing ROS Kinetic. It was tested on Ubuntu 20.04.

  • Log on to Ubuntu as an administrator or user that can run sudo commands.
  • Open Terminal

ROS Installation Configuration

Setup your sources.list

  • Setup your computer to accept software from packages.ros.org.
  • sudo sh -c ‘echo “deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main” > /etc/apt/sources.list.d/ros-latest.list’
  • Set up your keys
  • sudo apt-key adv –keyserver ‘hkp://keyserver.ubuntu.com:80’ –recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654

Installation of ROS

  • First, make sure your Debian package index is up-to-date:
  • sudo apt update
  • Now pick how much of ROS you would like to install.
  • Desktop-Full Install: (Recommended) : Everything in Desktop plus 2D/3D simulators and 2D/3D perception packages
    • sudo apt install ros-noetic-desktop-full

There are even more packages available in ROS. You can always install a specific package directly.

apt search ros-noetic


Environment setup

  • You must run this source script in every bash terminal you use ROS in

source /opt/ros/noetic/setup.bash

It can be convenient to automatically source this script every time a new shell is launched. 

  • If you have more than one ROS distribution installed, ~/.bashrc must only source the setup.bash for the version you are currently using.

echo “source /opt/ros/noetic/setup.bash” >> ~/.bashrc

source ~/.bashrc


Python setup

sudo apt-get install python-rosinstall


Test the Installation

  • Open Terminal
  • Type in Commands

rosversion -d

roscore

Both commands will provide details of the ROS Version installed