-
Notifications
You must be signed in to change notification settings - Fork 862
Installation: Plain CMake (No ROS)
It is possible to build the svo
library without ROS/CMake. Therefore, you will need to first install the following dependencies:
sudo apt-get install libboost-all-dev
apt-get install libeigen3-dev
Follow the instructions at www.opencv.org
Sophus by Hauke Strasdat implements Lie groups that we need to describe rigid body transformations. Checkout in your workspace for plain CMake projects.
cd workspace
git clone https://github.com/strasdat/Sophus.git
cd Sophus
git checkout a621ff
mkdir build
cd build
cmake ..
make
You don't need to install the library since cmake ..
writes the package location to ~/.cmake/packages/
where CMake can later find it.
The Fast detector by Edward Rosten is used to detect corners. To simplify installation we provide a CMake package that contains the fast detector from the libCVD library (http://www.edwardrosten.com/cvd/).
cd workspace
git clone https://github.com/uzh-rpg/fast.git
cd fast
mkdir build
cd build
cmake ..
make
Only required if you want to run bundle adjustment. It is not necessary for visual odometry. In fact, we don't run it on our MAVs.
g2o requires the following system dependencies: cmake, libeigen3-dev, libsuitesparse-dev, libqt4-dev, qt4-qmake, libqglviewer-qt4-dev
, install them with apt-get
I suggest an out-of-source build of g2o:
cd workspace
git clone https://github.com/RainerKuemmerle/g2o.git
cd g2o
mkdir build
cd build
cmake ..
make
sudo make install
If you don't want to make a system install, then you can replace the cmake command with cmake .. -DCMAKE_INSTALL_PREFIX:PATH=$HOME/installdir
vikit contains camera models, some math and interpolation functions that SVO needs.
cd workspace
git clone https://github.com/uzh-rpg/rpg_vikit.git
in rpg_vikit/vikit_common/CMakeLists.txt
set the flag USE_ROS
to FALSE.
cd rpg_vikit/vikit_common
mkdir build
cd build
cmake ..
make
Now we are ready to build SVO. Clone it into your workspace
cd workspace
git clone https://github.com/uzh-rpg/rpg_svo.git
cd rpg_svo/svo
In svo/CMakeLists.txt
set the flag USE_ROS
to FALSE.
mkdir build
cd build
cmake ..
make