Difference between revisions of "ROS Tutorials"

From Lofaro Lab Wiki
Jump to: navigation, search
(1. Installing and configuring your ROS environment)
Line 6: Line 6:
 
=1.1 Beginner Level=
 
=1.1 Beginner Level=
  
To improve: 1-left align commands 1-delete hyperlink in commands
+
 
 +
 
 +
Aside to editor, to improve: 1-delete hyperlink in commands
  
 
==1. Installing and configuring your ROS environment==
 
==1. Installing and configuring your ROS environment==
Line 16: Line 18:
 
Setup sources list:
 
Setup sources list:
  
     sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'
+
     <nowiki>sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu precise main" > /etc/apt/sources.list.d/ros-latest.list'</nowiki>
  
 
You may be prompted for your super-user password. This should be your username password. Type it into the terminal and press ENTER.
 
You may be prompted for your super-user password. This should be your username password. Type it into the terminal and press ENTER.
Line 22: Line 24:
 
Setup keys:
 
Setup keys:
  
     wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
+
     <nowiki>wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -</nowiki>
  
 
Update Debian package:
 
Update Debian package:
  
     sudo apt-get update
+
     <nowiki>sudo apt-get update</nowiki>
  
 
Install Desktop-Full:
 
Install Desktop-Full:
  
   sudo apt-get install ros-hydro-desktop-full
+
   <nowiki>sudo apt-get install ros-hydro-desktop-full</nowiki>
  
 
Initialize rosdep:
 
Initialize rosdep:
  
   sudo rosdep init
+
   <nowiki>sudo rosdep init</nowiki>
   rosdep update
+
   <nowiki>rosdep update</nowiki>
  
 
Setup Enviornment:
 
Setup Enviornment:
  
   echo "source /opt/ros/hydro/setup.bash" >> ~/.bashrc
+
   <nowiki>echo "source /opt/ros/hydro/setup.bash" >> ~/.bashrc</nowiki>
   source ~/.bashrc
+
   <nowiki>source ~/.bashrc</nowiki>
  
 
Install rosinstall:
 
Install rosinstall:
  
   sudo apt-get install python-rosinstall
+
   <nowiki>sudo apt-get install python-rosinstall</nowiki>
  
 
==2. Navigating the ROS Filesystem==
 
==2. Navigating the ROS Filesystem==

Revision as of 15:39, 8 October 2014

Practicing writing a wiki page- all information below is incomplete until otherwise noted.

This tutorial assumes that you will be working in ROS-hydro on Ubuntu 12.04. This wiki is based on the tutorials given here.

1.1 Beginner Level

Aside to editor, to improve: 1-delete hyperlink in commands

1. Installing and configuring your ROS environment

We recommend ROS-hydro on Ubuntu 12.04, instructions given on this link. The commands are given below.

If not using Ubuntu 12.04 and installing hydro: please refer to instructions given here.

Setup sources list:

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

You may be prompted for your super-user password. This should be your username password. Type it into the terminal and press ENTER.

Setup keys:

   wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -

Update Debian package:

   sudo apt-get update

Install Desktop-Full:

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

Initialize rosdep:

  sudo rosdep init
  rosdep update

Setup Enviornment:

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

Install rosinstall:

  sudo apt-get install python-rosinstall

2. Navigating the ROS Filesystem

3. Creating a ROS Package

4. Building a ROS Package

5. Understanding ROS Nodes

6. Understanding ROS Topics