-
Notifications
You must be signed in to change notification settings - Fork 14
/
DatasetReader.h
45 lines (32 loc) · 930 Bytes
/
DatasetReader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
//
// Created by zhuzunjie on 18-4-9.
//
#ifndef DATASETREADER_H
#define DATASETREADER_H
#include <vector>
#include <string>
#include <fstream>
#include "IMUdata.h"
using namespace std;
namespace DataReader {
typedef struct ImageList {
double timeStamp;
string imgName;
} ICell;
// typedef struct loadGroundtruth {
// double timeStamp;
// Eigen::Vector3d position;
// Eigen::Quaterniond rotation_Q;
// } GT;
void loadImageList(const char *imagePath, std::vector<ICell> &iListData);
void loadIMUFile(const char *imuPath, std::vector<IMUData> &vimuData);
/*
* @brief synchronize init time of imu and image.
*/
void synInit(std::vector<ICell> &imageList, std::vector<IMUData> &imuList, int imgIdx, int imuIdx);
/*
* @brief read groundtruth information.
*/
// void loadGTFile(const char *imuPath, std::vector<GT> &vGTData);
}
#endif //DATASETREADER_H