Skip to content

Installation Instructions Junior Simulation Linux

Arnoud Visser edited this page Mar 22, 2019 · 3 revisions

Installation Instructions

The optimal chain is not defined yet, so at the end only a subset of these packages will be used. We are researching at the workweek in Cambridge for instance the following the following chains:

  • Scratch -> ROS -> Gazebo
  • Blocky -> Python -> ROS -> Webots
  • Matlab Live Script -> ROS -> Gazebo

Other operating systems

These are the instructions for Linux, the recommended platform. These are also instructions for Windows. Unfortunately there are no instructions for the Mac.

Webots

https://cyberbotics.com/#download (Windows / Mac / Linux)

Ubuntu 16.04

If you have already Linux, you could skip this step.

  • Download an image from http://releases.ubuntu.com/16.04/
  • Follow the instructions to install Ubuntu.
  • If your version of Ubuntu is older (i.e. 14.04 LTS), you could upgrade with the command do-release-upgrade or apt-get dist-upgrade (all these installation commands are executed as super-user by adding sudo command in front). If upgrading fails, search for held installations with the command dpkg --get-selections | grep hold, followed by apt-get remove PACKAGE, apt-get update and apt-get autoremove. If upgrading still fails, search for broken installations with the command grep Broken /var/log/dist-upgrade/apt.log, followed by apt-get remove PACKAGE and apt-get autoremove.
  • If your version of Ubuntu is newer (i.e. 18.04 LTS), you should lay down and wait for instructions. Seriously, according to Gazebo the combination 18.04 - ROS Melodic - Gazebo 9.x is probably your best choice (but not yet tested).

ROS Kinetic

Once you have Ubuntu 16.04 LTS, follow the instruction to install ROS Kinetic:

  • 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 or alternatively wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
  • sudo apt-get update
  • sudo apt-get install ros-kinetic-desktop
  • sudo apt-get install rosbash
  • If this installation fails due to conflicts between dependencies of packages which are no longer installed but whose dependency remained after the Ubuntu upgrade, remove the old dependency with the command dpgk -r PACKAGE.

Gazebo 7.x

Continue with the installation of the latest production version of Gazebo (gazebo7 is part of ROS Kinetic):

Clone this wiki locally