forked from HeYijia/vio_data_simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutilities.h
38 lines (26 loc) · 1.12 KB
/
utilities.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
//
// Created by hyj on 18-1-19.
//
#ifndef IMUSIMWITHPOINTLINE_UTILITIES_H
#define IMUSIMWITHPOINTLINE_UTILITIES_H
#include "imu.h"
#include <eigen3/Eigen/Core>
#include <eigen3/Eigen/Geometry>
#include <iostream>
#include <vector>
#include <fstream>
// save 3d points to file
void save_points(std::string filename, std::vector<Eigen::Vector4d, Eigen::aligned_allocator<Eigen::Vector4d> > points);
// save 3d points and it's obs in image
void save_features(std::string filename,
std::vector<Eigen::Vector4d, Eigen::aligned_allocator<Eigen::Vector4d> > points,
std::vector<Eigen::Vector2d, Eigen::aligned_allocator<Eigen::Vector2d> > features);
// save line obs
void save_lines(std::string filename,
std::vector<Eigen::Vector4d, Eigen::aligned_allocator<Eigen::Vector4d> > features);
void LoadPose(std::string filename, std::vector<MotionData>& pose);
// save imu body data
void save_Pose(std::string filename, std::vector<MotionData> pose);
// save pose as TUM style
void save_Pose_asTUM(std::string filename, std::vector<MotionData> pose);
#endif //IMUSIMWITHPOINTLINE_UTILITIES_H