Difference between revisions of "ROS Tutorial"

From Macro Wiki
Jump to: navigation, search
Line 1: Line 1:
This tutorial has information about installation and setup of ROS, as well as the installation of useful packages required to control some robots.
+
This tutorial has information about installation and setup of ROS, as well as the installation of useful packages required to control some robots. All the information here is from [http://wiki.ros.org/indigo ROS Indigo wiki].  
  
 
== ROS installation ==
 
== ROS installation ==
Line 16: Line 16:
 
     sudo apt-get install ros-indigo-desktop-full
 
     sudo apt-get install ros-indigo-desktop-full
  
== Initialize rosdep ==
+
=== Initialize rosdep ===
  
 
Before you can use ROS, you will need to initialize ''rosdep'':
 
Before you can use ROS, you will need to initialize ''rosdep'':
Line 23: Line 23:
 
     rosdep update
 
     rosdep update
  
== Environment setup ==
+
=== Environment setup ===
  
 
It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:
 
It's convenient if the ROS environment variables are automatically added to your bash session every time a new shell is launched:
Line 29: Line 29:
 
     echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
 
     echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
 
     source ~/.bashrc
 
     source ~/.bashrc
 +
 +
=== Getting rosinstall ===

Revision as of 17:48, 9 September 2017

This tutorial has information about installation and setup of ROS, as well as the installation of useful packages required to control some robots. All the information here is from ROS Indigo wiki.

ROS installation

First setup your computer to accept software from packages.ros.org:

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

Next set up your keys:

   sudo apt-key adv --keyserver hkp://ha.pool.sks-keyservers.net:80 --recv-key 421C365BD9FF1F717815A3895523BAEEB01FA116

Then, to install the ROS Indigo, do:

   sudo apt-get update
   sudo apt-get install ros-indigo-desktop-full

Initialize rosdep

Before you can use ROS, you will need to initialize rosdep:

   sudo rosdep init    
   rosdep update

Environment setup

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

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

Getting rosinstall