forked from HeYijia/vio_data_simulation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparam.h
49 lines (34 loc) · 929 Bytes
/
param.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
46
47
48
49
//
// Created by hyj on 17-6-22.
//
#ifndef IMUSIM_PARAM_H
#define IMUSIM_PARAM_H
#include <eigen3/Eigen/Core>
class Param{
public:
Param();
// time
int imu_frequency = 200;
int cam_frequency = 30;
double imu_timestep = 1./imu_frequency;
double cam_timestep = 1./cam_frequency;
double t_start = 0.;
double t_end = 20; // 20 s
// noise
double gyro_bias_sigma = 1.0e-5;
double acc_bias_sigma = 0.0001;
double gyro_noise_sigma = 0.015; // rad/s * 1/sqrt(hz)
double acc_noise_sigma = 0.019; // m/(s^2) * 1/sqrt(hz)
double pixel_noise = 1; // 1 pixel noise
// cam f
double fx = 460;
double fy = 460;
double cx = 255;
double cy = 255;
double image_w = 640;
double image_h = 640;
// 外参数
Eigen::Matrix3d R_bc; // cam to body
Eigen::Vector3d t_bc; // cam to body
};
#endif //IMUSIM_PARAM_H