Home‎ > ‎

Robotics Club

Installing Robot OS Indigo on Ubuntu 14.04.
If you have the most updated version you should be able to do the following: 

sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
sudo apt-key adv --keyserver hkp://pool.sks-keyservers.net --recv-key 0xB01FA116
sudo apt-get update
sudo apt-get install ros-indigo-desktop-full
sudo rosdep init
sudo apt-get install python-rosinstall

For each user account that needs ROS do this as that user:
echo "source /opt/ros/indigo/setup.bash" >> ~/.bashrc
source /opt/ros/indigo/setup.sh
rosdep update

Running "rosdep update" using sudo causes permission problems. If you do that run this to fix them:
sudo rosdep fix-permissions

Then re-run (as non-root):
rosdep update 

To get the Swarmathon code follow the directions here: https://github.com/BCLab-UNM/Swarmathon-ROS

Making the Swarmathon-ROS project work with Eclipse. 
  1. Download the Eclipse installer here: https://eclipse.org/downloads/download.php?file=/oomph/epp/mars/R1a/eclipse-inst-linux64.tar.gz
  2. Launch the installer and install the Eclipse for C/C++ Developers package 
The ROS project uses catkin. To get catkin to create an Eclipse project do this in your rover_workspace directory 

cd ~/rover_workspace
catkin_make clean 
rm -rf build
catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles"
awk -f $(rospack find mk)/eclipse.awk build/.project > build/.project_with_env && mv build/.project_with_env build/.project

Be sure that you have followed the Swarmathon setup carefully. Make sure that your .bashrc is sourcing ~/rover_workspace/devel/setup.bash.

Create a new workspace for your robot work. It MUST NOT be ~/rover_workspace. Select the "Workbench" icon on your new eclipse window and select:

File->Import->General->Existing Projects into Workspace 

Navigate to ~/rover_workspace and eclipse should find the project file you generated. Select the project and click ok. If you see a TON of errors when you open a source file, remove the project from Eclipse and start over. Be sure to do catkin_make clean and remove your build directory!



Comments