Subscribe:

Ads 468x60px

Sunday, September 25, 2011

How to Install ROS in Ubuntu

Hi all

ROS-Electric Installation procedure



Ubuntu 10.04 (Lucid)

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


Ubuntu 10.10 (Maverick)


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


Ubuntu 11.04 (Natty)


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


Set up your keys



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

Installation

Make sure you have re-indexed the ROS.org server:

sudo apt-get update

There are many different libraries and tools in ROS. We provided four default configurations to get you started. You can also install ROS stacks individually.

Desktop-Full Install: (Recommended): ROS, rx, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception

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

Desktop Install: ROS, rx, rviz, and robot-generic libraries

sudo apt-get install ros-electric-desktop

ROS-Base: (Bare Bones) ROS package, build, and communication libraries. No GUI tools.

sudo apt-get install ros-electric-ros-base

Individual Stack: You can also install a specific ROS stack (replace underscores with dashes of the stack name):

sudo apt-get install ros-electric-STACK

e.g.
sudo apt-get install ros-electric-slam-gmapping

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/electric/setup.bash" >> ~/.bashrc
. ~/.bashrc

If you have more  than one ROS distribution installed, ~/.bashrc must only source the setup.bash for the version you are currently using.

If you just want to change the environment of your current shell, you can type:

source /opt/ros/electric/setup.bash


Check this link for more info
http://www.ros.org/wiki/electric/Installation/Ubuntu



1 comments:

sonny said...

Hi, i am sonny..i am currently working on arduino and with that i am trying to install ROS. I searched the whole net,stdudied diffrent sites,but your videos on youtube for ROS installation gave me the help which i needed. they were very helpful.
But i am getting a problem, while i am trying to run my first basic code on arduino with ROS, the Hello world code in the ros_lib, i am getting an error like below..
In file included from /opt/ros/hydro/include/ros/node_handle.h:31,
from /home/traininghes/arduino-1.5.2/libraries/ros_lib/ros.h:38,
from HelloWorld.pde:6:
/opt/ros/hydro/include/ros/forwards.h:37: fatal error: boost/shared_ptr.hpp: No such file or directory
compilation terminated.
i am unable to verify the code since i don't understand the error.
It will be appreciated if you please look at this issue and help me to get out of this problem.

Thanks..

Post a Comment