ORB_SLAM3 icon indicating copy to clipboard operation
ORB_SLAM3 copied to clipboard

how to build ORB_SLAM3 on raspbian buster raspberry pi - [SOLVED]

Open zoldaten opened this issue 2 years ago • 7 comments

as i spent a day to find out why all these "boosts,eigens, etc" do not let me to build ORB SLAM here`s my solution which should work on raspberry pi arm aarch64 and arm7l as i built on both systems:

---libraries---
sudo apt-get install libboost-all-dev libboost-dev libssl-dev libpython2.7-dev libeigen3-dev

---Pangolin---
cd ~
git clone https://github.com/stevenlovegrove/Pangolin
cd Pangolin
./scripts/install_prerequisites.sh recommended
cmake -B build -GNinja
cmake --build build
cmake --build build -t pypangolin_pip_install #no need

---opencv---
*https://qengineering.eu/install-opencv-4.5-on-raspberry-pi-4.html
wget https://github.com/Qengineering/Install-OpenCV-Raspberry-Pi-32-bits/raw/main/OpenCV-4-5-5.sh
sudo chmod 755 ./OpenCV-4-5-5.sh
./OpenCV-4-5-5.sh

---ORB_SLAM3---
git clone https://github.com/UZ-SLAMLab/ORB_SLAM3.git ORB_SLAM3
cd ORB_SLAM3
chmod +x build.sh
sed -i 's/++11/++14/g' CMakeLists.txt
./build.sh

if u have troubles with old opencv versions just remove em:

sudo apt-get purge '*opencv*'
sudo find / -name "*opencv*" -exec rm -rf {} \;

have a nice day!

zoldaten avatar Aug 26 '22 15:08 zoldaten

nice!

AndrewOsswald avatar Apr 19 '24 19:04 AndrewOsswald

I'm experiencing a halt during the build process on my Raspberry Pi 4B with 4GB of RAM. Could you please let me know how much RAM your Pi has, so I can compare and see if that might be the cause of the issue?

abraxas4 avatar Jun 10 '24 06:06 abraxas4

I'm experiencing a halt during the build process on my Raspberry Pi 4B with 4GB of RAM. Could you please let me know how much RAM your Pi has, so I can compare and see if that might be the cause of the issue?

cant remember exactly, may be 8. actually u dont need that. just increase swap and use make -j1 if applicable.

zoldaten avatar Jun 13 '24 17:06 zoldaten

Thank you. Increasing the swap to 8G on the USB SSD drive (with 4G RAM) solved it

abraxas4 avatar Jun 26 '24 04:06 abraxas4

Thank you. Increasing the swap to 8G on the USB SSD drive (with 4G RAM) solved it

May I know the performance of ORBSLAM3 in 8GB Rasp Pi?

mjunsen123 avatar Jul 02 '24 10:07 mjunsen123

My Raspberry Pi has 4GB of RAM, and I initially tested ORBSLAM3 using only a webcam in mono mode. During the test, I observed that ORBSLAM3 utilized around 1.x GB of RAM. When using a mono webcam, there was some delay during cases of sudden lighting changes, which was also observed on a laptop running Ubuntu. Other than that, I didn't notice any significant differences in performance.

abraxas4 avatar Jul 02 '24 11:07 abraxas4

Thank you for your information. Did you have the opportunity to run stereo-inertial SLAM via EUROC / TUM on Rasp Pi? How many FPS you tested in mono btw?

mjunsen123 avatar Jul 02 '24 12:07 mjunsen123