Howto Install and Configure ROS on Ubuntu

HowtoInstall and Configure ROS Groovy on Ubuntu

Followthe instruction install ROS Groovy:

  1. Setupsources.list:

    $sudosh -c 'echo "deb precisemain" > /etc/apt/sources.list.d/ros-latest.list'

  2. Setupkeys:

    $wget -O - | sudo apt-key add -

  3. Installation:

    1. $sudoapt-get update

    2. $sudoapt-get install ros-groovy-desktop-full

  4. Initializerosdep:

    1. $sudorosdep init

    2. $rosdepupdate

  5. Environmentsetup:

    1. Addthe ROS environment variables to the bash session every time a newshell is launched:

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

    2. Resourceto enable ros environment variables:


    3. Checkthe ros environment variable to test the installation:


      $export| grep ROS

      You will getsomething like:

      declare-x ROS_DISTRO="groovy"

      declare-x ROS_ETC_DIR="/opt/ros/groovy/etc/ros"

      declare-x ROS_MASTER_URI="http://localhost:11311"

      declare-x ROS_PACKAGE_PATH="/opt/ros/groovy/share:/opt/ros/groovy/stacks"

      declare-x ROS_ROOT="/opt/ros/groovy/share/ros"

      Everytime a new shell is launched, the environment variables will beloaded automatically.

  6. Getrosinstall:

    $sudoapt-get install python-rosinstall

Followthe instruction configure ros environment:

  1. Createa ROS Workspace:

    1. Createdirectories:

      $mkdir-p /program/ros_workspace/src

    2. Initializethe workspace:



      thiscommand will create one CMakeList.txt link;

    3. Buildthe workspace:



      thiscommand will create another two folders build and devel in theworkspace, refer to detailed information about these folders.

  2. Changethe source command in ~/.bashrc:


    Commentthe last line with '#',add new source and save the file. That is,changing the last part of ~/.bashrc into:



    Byadding this line, every time you start a new shell, it willautomatically load ros environment variables. And roscd willdirectly take you to /program/ros_workspace/devel.