Skip to content
This repository has been archived by the owner on Jan 23, 2024. It is now read-only.

How to install

Timo Hinzmann edited this page Apr 15, 2019 · 12 revisions

Description for Ubuntu 14.04 and ROS indigo. Analog for ROS jade, kinetic, and higher Ubuntu versions.

Install required system packages

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 python-setuptools git g++ cppcheck \
python-git python-wstool python-catkin-tools

# Repo dependencies
sudo apt install autotools-dev doxygen dh-autoreconf git liblapack-dev libblas-dev libgtest-dev --yes

# Optional, possibly helpful packages
sudo apt-get install nautilus-open-terminal synaptic vim ccache

Update ROS environment

sudo rosdep init
rosdep update
echo ". /opt/ros/indigo/setup.bash" >> ~/.bashrc
source ~/.bashrc

Install aerial_mapper

GDAL dependency (used to export orthomosaic as geotiff format):

sudo apt-get update
sudo apt-get install libgdal-dev

or alternatively from source:

cd Downloads
wget https://download.osgeo.org/gdal/2.3.1/gdal-2.3.1.tar.gz
tar -zvxf gdal-2.3.1.tar.gz
cd gdal-2.3.1
./configure
make
sudo make install

Curl dependency for Google Maps Api (used for visualization):

sudo apt-get update
sudo apt-get install libcurlpp-dev
sudo apt-get install libcurl4-openssl-dev

e.g. for Ubuntu 14.04, ROS indigo

mkdir -p ~/catkin_ws_aerial_mapper/src
cd catkin_ws_aerial_mapper
catkin init
catkin config --merge-devel # Necessary for catkin_tools >= 0.4.
catkin config --extend /opt/ros/indigo # Replace indigo by your ROS version
catkin config --cmake-args -DCMAKE_BUILD_TYPE=Release # Release/Debug
cd src
wstool init
git clone git@github.com:ethz-asl/aerial_mapper.git 
# alternatively: git clone https://github.com/ethz-asl/aerial_mapper.git

wstool merge aerial_mapper/install/dependencies_ssh.rosinstall
wstool update -j8
sed -i 's/WITH_QT=OFF/WITH_QT=ON/g' opencv3_catkin/CMakeLists.txt # only necessary with Ubuntu 14.04

Then to compile:

catkin build aerial_mapper