Clone the repositories into same folder.
https://github.com/stevenlovegrove/Pangolin
- Dependency
sudo apt install libgl1-mesa-dev
sudo apt install libglew-dev
sudo apt install cmake
sudo apt-get install libxkbcommon-x11-dev
- Build
git clone https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
mkdir build
cd build
cmake ..
cmake --build .
sudo apt-get install libeigen3-dev sudo apt install libwayland-dev https://github.com/raulmur/ORB_SLAM2
- add
#include <unistd.h>
intoInclude/System.h
. - Patch the repository (see Python Binding).
- Build project
chmod +x build.sh
./build.sh
- Python binding requires
sudo make install
.
https://github.com/jskinn/ORB_SLAM2-PythonBindings
- Patch the orb-slam repository.
git apply ../ORB_SLAM2-PythonBindings/orbslam-changes.diff
- Build ORB-SLAM2 (see ORB-SLAM2).
- Modify the python version from 3.5 to 3.6 in "CMakeLists.txt"
31 find_package(PythonLibs 3.5 REQUIRED) -> 3.6
33 find_package(Boost 1.45.0 REQUIRED COMPONENTS python-py35) -> 36
72 install(TARGETS ${TARGET_MODULE_NAME} DESTINATION lib/python3.5/dist-packages) -> 3.6
- Some Dependency.
sudo apt-get install libboost-all-dev
- Build project.
mkdir build
cd build
cmake ..
make
make install
- Test the python import
python3
>>> import orbslam2
https://vision.in.tum.de/data/datasets/rgbd-dataset/download
Recommand Sequence 'freiburg3_long_office_household' https://vision.in.tum.de/rgbd/dataset/freiburg3/rgbd_dataset_freiburg3_long_office_household.tgz
- Copy
ORB_SLAM2-PythonBindings/txamples/orbslam_mono_tum.py
toORB-SLAM2/
- Make folder
Datasets/
and extract the dataset into it. - Run orb-slam
python3 orbslam_mono_tum.py Vocabulary/ORBvoc.txt Examples/Monocular/TUM3.yaml Datasets/rgbd_dataset_freiburg3_long_office_household
- restart camera
sudo systemctl restart nvargus-daemon
- Failed to load module “canberra-gtk-module”
sudo apt-get install libcanberra-gtk-module
- FreeType http://www.linuxfromscratch.org/blfs/view/svn/general/freetype2.html ./configure sudo make install
- LibPng sudo apt-get install -y libpng-dev
- Install python plotly library
pip3 install plotly
- Install jupyter extension and rebuild jupyter.
sudo jupyter labextension install @jupyterlab/plotly-extension
jupyter lab build
- Restart your jetbot.