Repository navigation
Installation Ubuntu 14.04
sudo add-apt-repository "deb http://packages.ros.org/ros/ubuntu trusty main"
wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add -
sudo apt-get update
sudo apt-get install ros-indigo-desktop-full doxygen liblapack-dev libblas-dev \
autotools-dev dh-autoreconf libboost-all-dev python-setuptools git g++ cppcheck \
default-jre libreadline-dev libgtest-dev libglew-dev clang-format-3.8 python-git \
pylint checkstyle python-termcolor ros-indigo-camera-info-manager* liblog4cplus-dev \
cimg-dev python-wstool python-catkin-tools ros-indigo-rviz-animated-view-controller \
libssh2-1-dev libatlas3-base libv4l-dev libedit-dev
# Optional, possibly helpful packages
sudo apt-get install nautilus-open-terminal synaptic vim sudo rosdep init
rosdep update
echo ". /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrcIf you are running Ubuntu 14.04.2, the ROS installation may fail. There is a workaround described on the ROS Installation Wiki. From that page:
Do not install these packages if you are using 14.04, it will destroy your X server!
############## CAREFUL #############################
sudo apt-get install xserver-xorg-dev-lts-utopic mesa-common-dev-lts-utopic \
libxatracker-dev-lts-utopic libopenvg1-mesa-dev-lts-utopic \
libgles2-mesa-dev-lts-utopic libgles1-mesa-dev-lts-utopic \
libgl1-mesa-dev-lts-utopic libgbm-dev-lts-utopic libegl1-mesa-dev-lts-utopicccache is a tool that caches intermediate build files to speed up rebuilds of the same code. On Ubuntu it can be set up with the following command. The max. cache size is set to 10GB and can be adapt on the lines below:
sudo apt-get install -y ccache &&\
echo 'export PATH="/usr/lib/ccache:$PATH"' | tee -a ~/.bashrc &&\
source ~/.bashrc && echo $PATH
ccache --max-size=10GYour path (at least the beginning) should look like:
/usr/lib/ccache:/usr/local/cuda-5.5/bin/:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
And g++/gcc should now point to:
which g++ gcc
/usr/lib/ccache/g++
/usr/lib/ccache/gcc
Show cache statistics:
ccache -s
Empty the cache and reset the stats:
ccache -C -z
ccache only works for a clean workspace. You will need a make clean otherwise.
There is a ROS-install file which contains all the necessary repositories for your workspace.
To create a workspace using this file:
export CATKIN_WS=~/maplab_ws
mkdir -p $CATKIN_WS/src
cd $CATKIN_WS
catkin init
catkin config --merge-devel # Necessary for catkin_tools >= 0.4.
catkin config --extend /opt/ros/indigo
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release
cd src
git clone git@github.com:ethz-asl/maplab --recursive
git clone git@github.com:ethz-asl/maplab_dependencies --recursive
cd maplab
./tools/linter/init-git-hooks.py # Requires sudo pip install autopep8
cd ..Then build the packages:
cd $CATKIN_WS
catkin build maplabThis problem is confirmed on Ubuntu 12.04, it does not appear to affect 14.04.
If during catkin build you're getting an error similar to:
/usr/bin/ld: cannot find -lgtestIt means that your system is most probably lacking compiled Google Test libraries (as the libgtest-dev package provides only source). You need to compile them manually:
cd /usr/src/gtest
sudo cmake .
sudo make
sudo mv libg* /usr/lib/The issue is described here: http://askubuntu.com/questions/145887/why-no-library-files-installed-for-google-test.
The current ROS packages now ship with catkin-tools version 3.0 (or higher). This should be current enough for our builds.
If you need a more current version:
cd /tmp
git clone https://github.com/catkin/catkin_tools.git
cd catkin_tools
sudo python setup.py installOn every jenkins computer do locally
sudo vim /etc/matplotlibrcand change backend to Agg