VOD-SLAM 复现 AirDos 复现

VOD-SLAM 复现

参考:https://www.mianshigee.com/project/halajun-VDO_SLAM/
下载:

git clone https://github.com/halajun/VDO_SLAM.git VDO-SLAM

CSparse 库安装

sudo apt-get install libsuitesparse-dev

解决:fatal error: opencv2/xfeatures2d.hpp: No such file or directory
把Frame.cc里面的
xfeatures2d.hpp改为features2d.hpp

// #include<opencv2/optflow.hpp>问题
直接注释掉,把函数换为下面的函数

cv::Mat readFlowFile(const std::string& fileName) {
    cv::Mat flow;
    std::ifstream file(fileName, std::ios::binary);
    if (!file.is_open()) {
        std::cerr << "Failed to open file: " << fileName << std::endl;
        return flow;
    }
    int tag;
    file.read((char*) &tag, sizeof(int));
    int width, height;
    file.read((char*) &width, sizeof(int));
    file.read((char*) &height, sizeof(int));
    flow.create(height, width, CV_32FC2);

    for (int i = 0; i < height; ++i) {
        for (int j = 0; j < width; ++j) {
            float f[2];
            file.read((char*) f, sizeof(float) * 2);
            // float* data = flo.ptr<float>(i, j);
            flow.at<cv::Vec2f>(i, j) = cv::Vec2f(f[0], f[1]);
        }
    }
    file.close();
    return flow;
}

AirDos 复现

下载:

git clone https://github.com/haleqiu/AirDOS.git

把ORB-SLAM2的ORBvoc.txt移动到VOcabulary中

编译

./build.sh

运行
按照对应文件的要求
例如:

./Examples/Stereo/stereo_kitti Vocabulary/ORBvoc.txt Examples/Stereo/KITTI00-02.yaml /media/ql/u1/Dataset/KITTI/dataset/sequences/00 ./Results/00.txt
  • 7
    点赞
  • 11
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

玛卡巴卡_qin

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值