Examples

Once you have flashed a microSD card and you are connected to Erle-Brain you will be able to work with ROS! As simple as this! (Those steps are described on the Getting Started section of Erle-Brain)

Fortunately for you, an Indigo release of ROS is already installed in a trusty chroot.

The following ones are the sections you will find in this page:

You will find ROS installed in /opt/ros/indigo/ but you will need to source the setup.bash(You will need to run this command on every new shell unless you add this line to your .bashrc)

source /opt/ros/indigo/setup.bash

So the first thing you need to know is that there is a working space named catkin_ws to work with ROS, there you will find a src directory, if not create one:

cd ~/catkin_ws/
mkdir src
cd src

There you are going to build your new packages! See how to manage the environment.

For a package to be considered a catkin package it must meet a few requirements:

  • The package must contain a catkin compliant package.xml file.

  • That package.xml file provides meta information about the package.

  • The package must contain a CMakeLists.txt which uses catkin. Catkin metapackages must have a boilerplate CMakeLists.txt file.
  • There can be no more than one package in each folder.

The simplest possible package might look like this:

my_package/
  CMakeLists.txt
  package.xml

You can take a look to the following videos: