Skip to content

HOW TO: Installing ROS Hydro and the youBot drivers

Janosch Haber edited this page Mar 30, 2014 · 16 revisions

Install ROS Hydro

To install ROS Hydro follow the following tutorial, you can skip "Getting rosinstall". A installation of ubuntu 12.04 without any other ROS versions is advised. Use the Desktop-Full Install.

If you have another version of ROS installed you should remove all ROS variables from you ~/.bashrc and put them in a "set_ros_$version.sh" file. When you want to use this version of ROS you simply source this file. In this tutorial, and the ROS Hydro tutorial variables are put in the .bashrc file, put these variables in a different .sh file so you can switch ROS installations. Do note that you can not source two versions of ROS. You'd have to open a new terminal in which you can source the different version.

Ros Hydro Installation Tutorial

Setting up a workspace

In order to create packages for ROS Hydro youĺl need a catkin workspace. You can create a workspace with the following commands:

mkdir -p ~/catkin_ws/src
cd ~/catkin_ws/src
catkin_init_workspace

cd ~/catkin_ws/
catkin_make

Next, add your workspace to your .bashrc file

echo "source ~/catkin_ws/devel/setup.bash" >> ~/.bashrc
source ~/.bashrc

Installing required ROS Packages

Put the following in a .sh file and run it with sh ./X.sh

#!/bin/sh
sudo apt-get install \
ros-hydro-ros \
ros-hydro-roscpp \
ros-hydro-tf \
ros-hydro-tf-conversions \
ros-hydro-urdf \
ros-hydro-dynamic-reconfigure \
ros-hydro-visualization-msgs \
ros-hydro-std-srvs \
ros-hydro-rviz \
ros-hydro-amcl \
ros-hydro-dwa-local-planner \
ros-hydro-gmapping \
ros-hydro-map-server \
ros-hydro-move-base \
ros-hydro-nav-msgs \
ros-hydro-gazebo-ros-control \
ros-hydro-moveit-core \
ros-hydro-moveit-msgs \
ros-hydro-moveit-planners \
ros-hydro-moveit-ros-move-group \
ros-hydro-moveit-simple-controller-manager \
ros-hydro-kdl-parser \
ros-hydro-trajectory-msgs \
ros-hydro-ros-control \
ros-hydro-joint-trajectory-controller \
ros-hydro-vision-opencv \
ros-hydro-image-transport \
ros-hydro-ros-controllers \
ros-hydro-pcl-ros \
ros-hydro-pr2-msgs \
ros-hydro-brics-actuator

Installing the youBot drivers

If you don't have git installed yet get it with sudo apt-get install git.

Clone all the folders from the youbot repository into your catkin src folder. For each folder do the following:

git clone -b hydro-devel https://github.com/youbot/X.git

Where X is the folder name. You can also get the link from the far right side of the github page where it says HTTPS clone url.

When you have cloned all the folders go to your catkin workspace folder. Within the folder execute the catkin_make command. This could take some time. Check if you don't get any errors during this process. You will probably get a lot of "can't find package X" errors, installing this package with: sudo apt-get install ros-hydro-X. If you package does not exists: google for the right package name and try again.

Updated Package

The youbot_driver_ros_interface package was updated. cd to its folder in src and run git pull https://github.com/mas-group/youbot_driver_ros_interface.git hydro-devel to update your files.

Clone this wiki locally