Difference between revisions of "ROS Tutorial"

From AIRWiki
Jump to: navigation, search
(Configuration)
(Tips)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
  
 
== Step by step tutorial ==
 
== Step by step tutorial ==
Line 5: Line 4:
 
==== Installation ====
 
==== Installation ====
  
- Install Ubuntu 10.04 (this is the supported ubuntu version at September 2010) as native OS or inside a virtual machine (tested on VirtualBox - http://www.virtualbox.org)
+
* Install Ubuntu 10.04 (this is the supported ubuntu version at September 2010) as native OS or inside a virtual machine (tested on VirtualBox - http://www.virtualbox.org)
  
- Add ROS apt repositories and add ROS PGP keys to your system:
+
* Add ROS apt repositories and add ROS PGP keys to your system:
 +
<pre>
 
sudo sh -c 'echo "deb http://code.ros.org/packages/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'
 
sudo sh -c 'echo "deb http://code.ros.org/packages/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'
 
wget http://code.ros.org/packages/ros.key -O - | sudo apt-key add -
 
wget http://code.ros.org/packages/ros.key -O - | sudo apt-key add -
 
sudo apt-get update
 
sudo apt-get update
 +
</pre>
  
- Install ros-cturtle-base  
+
* Install ros-cturtle-base  
 +
<pre>
 
sudo apt-get install ros-cturtle-base
 
sudo apt-get install ros-cturtle-base
 +
</pre>
  
 
==== Configuration ====
 
==== Configuration ====
  
- In order to automatically add ROS environment variables when opening a termina, add ROS setup.sh script to bash resource file:
+
* In order to automatically add ROS environment variables when opening a termina, add ROS setup.sh script to bash resource file:
 
<pre>
 
<pre>
 
echo "source /opt/ros/cturtle/setup.sh" >> ~/.bashrc
 
echo "source /opt/ros/cturtle/setup.sh" >> ~/.bashrc
Line 23: Line 26:
 
</pre>
 
</pre>
  
-
+
==== Setup a folder for your folder for ros experiment ====
 +
* add this line
 +
<pre>export ROS_PACKAGE_PATH=YOUR_BEGINNER_TUTORIALS_PATH:$ROS_PACKAGE_PATH</pre>
 +
to your '.bashrc' file,
 +
 
 +
==== Tips ====
 +
* rosed command use as default the vim editor. If you want to set your favorite editor (in the example emacs), add
 +
<pre>export EDITOR='emacs -nw'</pre>
 +
to the .bashrc file
 +
 
 +
===== System update problems =====
 +
* If you try to update your system with
 +
<pre>
 +
sudo apt-get update
 +
sudo apt-get upgrade
 +
</pre>
 +
and you obtain a message like:
 +
<pre>
 +
[...]
 +
The following packages have been kept back:
 +
[...]
 +
</pre>
 +
 
 +
Try to use
 +
<pre>
 +
sudo aptitude update
 +
sudo aptitude upgrade
 +
</pre>
 +
Aptitute manage dependancies better than apt-get, so you should be able to update your system properly
  
 
== Resources ==
 
== Resources ==

Latest revision as of 09:17, 5 October 2010

Step by step tutorial

Installation

  • Install Ubuntu 10.04 (this is the supported ubuntu version at September 2010) as native OS or inside a virtual machine (tested on VirtualBox - http://www.virtualbox.org)
  • Add ROS apt repositories and add ROS PGP keys to your system:
sudo sh -c 'echo "deb http://code.ros.org/packages/ros/ubuntu lucid main" > /etc/apt/sources.list.d/ros-latest.list'
wget http://code.ros.org/packages/ros.key -O - | sudo apt-key add -
sudo apt-get update
  • Install ros-cturtle-base
sudo apt-get install ros-cturtle-base

Configuration

  • In order to automatically add ROS environment variables when opening a termina, add ROS setup.sh script to bash resource file:
echo "source /opt/ros/cturtle/setup.sh" >> ~/.bashrc
. ~/.bashrc

Setup a folder for your folder for ros experiment

  • add this line
export ROS_PACKAGE_PATH=YOUR_BEGINNER_TUTORIALS_PATH:$ROS_PACKAGE_PATH

to your '.bashrc' file,

Tips

  • rosed command use as default the vim editor. If you want to set your favorite editor (in the example emacs), add
export EDITOR='emacs -nw'

to the .bashrc file

System update problems
  • If you try to update your system with
sudo apt-get update
sudo apt-get upgrade

and you obtain a message like:

[...]
The following packages have been kept back:
[...]

Try to use

sudo aptitude update
sudo aptitude upgrade

Aptitute manage dependancies better than apt-get, so you should be able to update your system properly

Resources

- ROS website: http://www.ros.org

- ROS Cturtle installation instructions: http://www.ros.org/wiki/cturtle/Installation/Ubuntu

- VirtualBox: http://www.virtualbox.org