geohot / twitchslam

A toy implementation of monocular SLAM written while livestreaming
MIT License
959 stars 211 forks source link

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

Open kir486680 opened 3 years ago

kir486680 commented 3 years ago

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

chbGSmCm commented 3 years ago

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