geohot / twitchslam

A toy implementation of monocular SLAM written while livestreaming

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AttributeError: module 'pypangolin' has no attribute 'DrawCameras'

kir486680 opened this issue · comments

This issue only appear if pangolin is compiled from here. How would I add DrawCameras() to the original repository?

make sure youre downloading the right pangolin (the python fork)
https://github.com/uoip/pangolin

instead of 'cmake ..' do:
cmake .. -DBUILD_PANGOLIN_FFMPEG=OFF -DPYBIND11_PYTHON_VERSION=3.8.5 (or whatever version of python youre using)

it should look like this
git clone https://github.com/uoip/pangolin.git
cd pangolin
mkdir build
cd build
cmake .. -DPYBIND11_PYTHON_VERSION=3.8.5 -DBUILD_PANGOLIN_FFMPEG=OFF
make -j8
cd ..
python setup.py install