orbslam2代码笔记(1)整体运行流程

导航 ------转载ncepu_Chen
ORB-SLAM2代码详解03: 地图点MapPoint
ORB-SLAM2代码详解04: 帧Frame
ORB-SLAM2代码详解05: 关键帧KeyFrame
ORB-SLAM2代码详解06: 单目初始化器Initializer
ORB-SLAM2代码详解07: 跟踪线程Tracking
ORB-SLAM2代码详解08: 局部建图线程LocalMapping
ORB-SLAM2代码详解09: 闭环线程LoopClosing

运行流程

#include<iostream>
#include<algorithm>
#include<fstream>
#include<chrono>
#include<opencv2/core/core.hpp>
#include<System.h>
#include<unistd.h>
using namespace std;

/**
 * @brief 获取图像文件的信息
 * @param[in]  strImagePath     图像文件存放路径
 * @param[in]  strPathTimes     时间戳文件的存放路径
 * @param[out] vstrImages       图像文件名数组
 * @param[out] vTimeStamps      时间戳数组
 */
void LoadImages(const string &strImagePath, const string &strPathTimes,
                vector<string> &vstrImages, vector<double> &vTimeStamps);
int main(int argc, char **argv)
{
   
    // step 0 判断输入参数的个数是否足够
    if(argc != 5)
    {
   
        cerr << endl << "Usage: ./mono_tum path_to_vocabulary path_to_settings path_to_image_folder path_to_times_file" << endl;
        return 1;
    }

    // step 1 加载图像
    // Retrieve paths to images
    vector<string> vstrImageFilenames;		// 图像序列的文件名字符串序列
    vector<double> vTimestamps;				// 时间戳
    LoadImages(string(argv[3]),             <
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值