Difference between revisions of "Robot Operating System"

From air
Jump to navigation Jump to search
Line 108: Line 108:
   
 
* Error messages:
 
* Error messages:
** "No ROS_WORKSPACE set": check your environment variable ROS_WORKSPACE is assigned (''echo $ROS_WORKSPACE'').
+
** "No ROS_WORKSPACE set": check your environment variable ROS_WORKSPACE is assigned (''echo $ROS_WORKSPACE''). If not, update your .bashrc file (''echo "export ROS_WORKSPACE=/home/<username>/catkin_ws" >> ~/.bashrc'').
If not, update your .bashrc file (''echo "export ROS_WORKSPACE=/home/<username>/catkin_ws" >> ~/.bashrc'').
+
** "No ROS_PACKAGE_PATH set": check your environment variable ROS_PACKAGE_PATH is assigned (''echo $ROS_PACKAGE_PATH''). If not, update your .bashrc file (''echo "export ROS_PACKAGE_PATH=/home/<username>/catkin_ws/src" >> ~/.bashrc'').
 
** "No ROS_PACKAGE_PATH set": check your environment variable ROS_PACKAGE_PATH is assigned (''echo $ROS_PACKAGE_PATH'').
 
If not, update your .bashrc file (''echo "export ROS_PACKAGE_PATH=/home/<username>/catkin_ws/src" >> ~/.bashrc'').
 
   
 
==Modules et Outils==
 
==Modules et Outils==

Revision as of 16:57, 6 April 2013

ROS est un environnement de developpement et d'exécution et de simulation pour la robotique développé initialement au MIT. ROS n'est pas un système d'exploitation et ROS n'offre pas de propriétés d'exécution en temps déterministe des taches, services, traitement des événements, ... (ie Temps Réel).

Il supporte des robots comme le Wifibot, le TurtleBot, le Lego Mindstorm NXT via un hôte Linux, des bras robotiques Lynx Motion .... (voir la liste presque complète).

ROS est porté sur plusieurs OS cependant seule la version Ubuntu est rapidement utilisables.

De nombreux pilotes d'équipements robotiques (contrôleur moteurs, lidar, télémètre, kinect ...) ont été développés.

Les 2 principaux langages utilisés sont C++ et Python. Il existe des bindings pour Java et Javascript (Node.js). Une application ROS est organisée en nodes qui sont des processus (Unix) concurrents. Les nodes interagissent par envoi d'évenements via des topics en mode publish-subscribe et bien par invocation d'opérations de service.

Il inclut des démonstrations de vision avec la XBox Kinect et OpenCV

ROS Industrial (http://rosindustrial.org/) est une version de ROS destinée aux robots industriels. a free, open-source, BSD-licensed software library, extends the advanced capabilities of the Robot Operating System (ROS) software to new industrial applications.

Installation

Setup sources.list

In a terminal, type the following line:

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

where <distribution> is your Ubuntu ditsribution name (e.g. "precise", "quantal", "raring", ...) This will add ROS repositories to your distribution.

Setup your keys

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

Now, you are able to download the latest updates from ROS.

Installation

Update the Debian packages:

sudo apt-get update

Install the full Groovy configuration:

sudo apt-get install ros-groovy-desktop-full

It will install ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception.

Initialize rosdep:

sudo rosdep init
rosdep update

This tool is used to install system dependencies required by ROS packages.

ROS is now installed but in order to run it, some environment variables must be assigned. This can be automatically done at the launch of the session:

echo "source /opt/ros/groovy/setup.bash" >> ~/.bashrc


Install python tools:

sudo apt-get install python-rosinstall python-rosdep

Finally, execute the script:

~/.bashrc


Configuration

Create a ROS workspace:

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace
cd ~/catkin_ws/
catkin_make
source devel/setup.bash

Troubleshooting

  • Error messages:
    • "No ROS_WORKSPACE set": check your environment variable ROS_WORKSPACE is assigned (echo $ROS_WORKSPACE). If not, update your .bashrc file (echo "export ROS_WORKSPACE=/home/<username>/catkin_ws" >> ~/.bashrc).
    • "No ROS_PACKAGE_PATH set": check your environment variable ROS_PACKAGE_PATH is assigned (echo $ROS_PACKAGE_PATH). If not, update your .bashrc file (echo "export ROS_PACKAGE_PATH=/home/<username>/catkin_ws/src" >> ~/.bashrc).

Modules et Outils

  • ros : ???
  • rosviz : ???
  • rospack : recherche de packages ROS

API

Javascript

rosnodejs Programming robots with Javascript & Node.js

Projets AIR