Difference between revisions of "ROS Installation"

From wikidb
Jump to: navigation, search
(Configure)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
Installation on Ubuntu 10.04.4 (Lucid)
+
== Installation on Ubuntu 10.04.4 (Lucid) ==
  
* [http://www.ros.org/wiki/electric/Installation/Ubuntu Ubuntu Install of Electric]
+
[http://www.ros.org/wiki/electric/Installation/Ubuntu Ubuntu Install of Electric]
  
** Setup sources.list
+
* Setup sources.list
 
<blockquote> <pre>  
 
<blockquote> <pre>  
 
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" >  
 
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" >  
Line 9: Line 9:
 
</pre> </blockquote>
 
</pre> </blockquote>
  
** Set up keys
+
* Set up keys
 
<blockquote> <pre>  
 
<blockquote> <pre>  
 
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
 
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
 
</pre> </blockquote>
 
</pre> </blockquote>
  
** Installation
+
* Installation
 
<blockquote> <pre>  
 
<blockquote> <pre>  
 
sudo apt-get update
 
sudo apt-get update
 +
</pre> </blockquote>
 +
 +
<blockquote> <pre>
 +
sudo apt-get install ros-electric-desktop-full
 +
</pre> </blockquote>
 +
 +
* Environment setup
 +
<blockquote> <pre>
 +
echo "source /opt/ros/electric/setup.bash" >> ~/.bashrc
 +
. ~/.bashrc
 +
</pre> </blockquote>
 +
 +
== Configure ==
 +
 +
[http://www.ros.org/wiki/ROS/Tutorials/InstallingandConfiguringROSEnvironment ROS Tutorial 1]
 +
 +
* Create ROS Workspace
 +
<blockquote> <pre>
 +
mkdir ~/ros_workspace
 +
</pre> </blockquote>
 +
 +
* Create init script
 +
:Put the following in ~/ros_workspace/setup.sh
 +
 +
<blockquote> <pre>
 +
#!/bin/sh
 +
source /opt/ros/electric/setup.bash
 +
export ROS_ROOT=/opt/ros/electric/ros
 +
export PATH=$ROS_ROOT/bin:$PATH
 +
export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH
 +
export ROS_PACKAGE_PATH=~/ros_workspace:/opt/ros/electric/stacks:$ROS_PACKAGE_PATH
 +
</pre> </blockquote>
 +
 +
:Put the following in ~/.bashrc
 +
<blockquote> <pre>
 +
source ~/ros_workspace/setup.sh
 
</pre> </blockquote>
 
</pre> </blockquote>

Latest revision as of 21:25, 7 May 2012

Installation on Ubuntu 10.04.4 (Lucid)

Ubuntu Install of Electric

  • Setup sources.list
 
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu lucid main" > 
    /etc/apt/sources.list.d/ros-latest.list'
  • Set up keys
 
wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
  • Installation
 
sudo apt-get update
 
sudo apt-get install ros-electric-desktop-full
  • Environment setup
 
echo "source /opt/ros/electric/setup.bash" >> ~/.bashrc 
. ~/.bashrc

Configure

ROS Tutorial 1

  • Create ROS Workspace
 
mkdir ~/ros_workspace
  • Create init script
Put the following in ~/ros_workspace/setup.sh
 
#!/bin/sh
source /opt/ros/electric/setup.bash
export ROS_ROOT=/opt/ros/electric/ros
export PATH=$ROS_ROOT/bin:$PATH
export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH
export ROS_PACKAGE_PATH=~/ros_workspace:/opt/ros/electric/stacks:$ROS_PACKAGE_PATH
Put the following in ~/.bashrc
 
source ~/ros_workspace/setup.sh