How to build ORB-SLAM3 on ubuntu20.04 in 2024?

1 remove GTK3

sudo apt remove libgtk3*

2 install opencv depenencies

sudo apt install build-essential cmake git pkg-config libgtk-3-dev \
libavcodec-dev libavformat-dev libswscale-dev libv4l-dev \
libxvidcore-dev libx264-dev libjpeg-dev libpng-dev libtiff-dev \
gfortran openexr libatlas-base-dev python3-dev python3-numpy \
libtbb2 libtbb-dev libdc1394-22-dev libopenexr-dev \
libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev

3 cmake install opencv 4.2 from source

4 cmake install eigen 3.4 from source

5 cmake install Pangolin-v0.6 from source

sudo apt install libglew-dev cmake libboost-dev libboost-thread-dev libboost-filesystem-dev -y

git clone --recursive https://github.com/stevenlovegrove/Pangolin.git
cd Pangolin
./scripts/install_prerequisites.sh recommended
git checkout v0.6

mkdir -p build && cd build
cmake … -DEigen3_DIR=$HOME/eigen-3.3.9/build
cmake --build .
make install
————————————————
原文链接:https://blog.csdn.net/weixin_50603817/article/details/124198214

6 cd your ORB-SLAM3 path

./build.sh

if you want to run KITTI camara STEREO type, Rectified error can be solved

6.1 add a condition in src/Settings.cc

if (settings.cameraType_ != Settings::Rectified) 

examlple ( i.e. )

    output << "" << ": [";
    if (settings.cameraType_ != Settings::Rectified){

        for(size_t i = 0; i < settings.originalCalib2_->size(); i++){
            output << " " << settings.originalCalib2_->getParameter(i);
        }
    }
    output << " ]" << endl;

6.2 donot work - (due to the settings class may not load the camera2 params)

alter the Examples/Stereo/KITTI*.yaml format to euroc*.yaml format – add params camera2

example

Camera2.fx: 718.856
Camera2.fy: 718.856
Camera2.cx: 607.1928
Camera2.cy: 185.2157

7 install ros-noetic

wget http://fishros.com/install -O fishros && . fishros
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值