Difference between revisions of "ROS Installation"
From wikidb
(→Configure Tutorial) |
(→Configure) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
</pre> </blockquote> | </pre> </blockquote> | ||
− | == Configure | + | == Configure == |
− | [http://www.ros.org/wiki/ROS/Tutorials/InstallingandConfiguringROSEnvironment ROS Tutorial] | + | [http://www.ros.org/wiki/ROS/Tutorials/InstallingandConfiguringROSEnvironment ROS Tutorial 1] |
* Create ROS Workspace | * Create ROS Workspace | ||
Line 47: | Line 47: | ||
export PATH=$ROS_ROOT/bin:$PATH | export PATH=$ROS_ROOT/bin:$PATH | ||
export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH | export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH | ||
− | + | export ROS_PACKAGE_PATH=~/ros_workspace:/opt/ros/electric/stacks:$ROS_PACKAGE_PATH | |
</pre> </blockquote> | </pre> </blockquote> | ||
:Put the following in ~/.bashrc | :Put the following in ~/.bashrc | ||
<blockquote> <pre> | <blockquote> <pre> | ||
− | source ~/ | + | 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)
- 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
- 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