[Documentation] [TitleIndex] [WordIndex

Ubuntu install of Shadow Robot Stacks on Electric

These instructions only cover installing The Shadow Robot stacks on a supported Ubuntu-based machine. If you discover problems installing them on other platforms, please contact us: ugo@shadowrobot.com or contact@shadowrobot.com

Installation Instructions

These instructions cover installing the Shadow Robot stacks for ROS Electric on a supported Ubuntu-based machine. To get more information about our robots, please refer to the Shadow Robot page.

Configure your Ubuntu repositories

Configure your Ubuntu repositories to allow "restricted," "universe," and "multiverse." You can follow the Ubuntu guide for instructions on doing this.

Setup your sources.list

Setup your computer to accept software from ROS.org.

  • Ubuntu 10.04 (Lucid)

    • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'

    Ubuntu 10.10 (Maverick)

    • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu maverick main" > /etc/apt/sources.list.d/ros-latest.list'

    Ubuntu 11.04 (Natty)

    • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu natty main" > /etc/apt/sources.list.d/ros-latest.list'

    Ubuntu 11.10 (Oneiric)

    • sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu oneiric main" > /etc/apt/sources.list.d/ros-latest.list'

Mirrors

Set up your keys

  • wget http://packages.ros.org/ros.key -O - | sudo apt-key add -

Installation

Make sure you have re-indexed the ROS.org server:

Install PR2 Desktop: PR2 developer stacks, including PR2 simulator.

Install rosinstall:

Install bzr:

Install mercurial:

Install subversion:

Now you can use this rosinstall file to install the rest of necessary packages and the Shadow Robot stacks.

To use it, just download the rosinstall (to the /tmp directory in this example):

 $ cd /tmp
 $ wget "http://wiki/Robots/Shadow%20Robot/detailed_electric_trunk?action=AttachFile&do=get&target=shadow_robot.rosinstall" -O shadow_robot.rosinstall

Go to the directory where you want to install the packages (in this example, we'll assume it's /code/ros/electric/workspace, and ros is installed in /opt/ros/electric), create an overlay, and then install the packages using rosinstall:

 $ cd /code/ros/electric/workspace
 $ rosinstall /code/ros/electric/workspace /opt/ros/electric
 $ rosinstall /code/ros/electric/workspace /tmp/shadow_robot.rosinstall

Then don't forget to source the generated setup.bash.

It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:

echo "source /code/ros/electric/workspace/setup.bash" >> ~/.bashrc
. ~/.bashrc

If you just want to change the environment of your current shell, you can type:

source /code/ros/electric/workspace/setup.bash

Optional IDE Configuration

To configure an IDE for ROS code development you can follow this instructions:

http://wiki/IDEs

If using Eclipse IDE, we recommend to install the latest version in the downloads section of eclipse website, not the packaged one in Ubuntu/Debian repositories. The chosen version should be “Eclipse IDE for C/C++ Linux Developers”.

http://www.eclipse.org/downloads/

To develop in Python on Eclipse, the plugin PyDev works well enough.

http://pydev.org/manual_101_install.html

Where to go from here?

You should have a look at our Documentation and also check the Tutorials.


2020-08-01 12:25