forked from SihanWang-WHU/GNSS_INS_LooseCouple
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInitial_Allignment.h
More file actions
29 lines (22 loc) · 975 Bytes
/
Initial_Allignment.h
File metadata and controls
29 lines (22 loc) · 975 Bytes
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
#pragma once
#ifndef INITIAL_ALIGNMENT_H
#define INITIAL_ALIGNMENT_H
#include<Eigen/Dense>
#include"ConstNums.h"
// @brief initial alignment class which uses the analysis coarse method.
// @parameters [in] raw_accel,raw_gyro,whose size is (epoch_num,3),type is Eigen::MatrixXd
// @parameters [out] init_rot_mat, the rot matrix obtained by init-align,whose type is Eigen::Matrix3d
class InitAlign {
public:
//functions
// set accel and gyro data by using static alignment raw data
void set(const Eigen::MatrixXd& accel, const Eigen::MatrixXd& gyro, double gravity, double lat);
// use analysis method to <coarse init-align>
Eigen::Matrix3d initAlign();
private:
Eigen::MatrixXd _accel; // static raw accel&gyro data, use for analysis coarse alignment
Eigen::MatrixXd _gyro; // should be MatrixXd(n,3)
double _gravity; // gravity acceleration
double _lat; // local latitude, units:rad
};
#endif