-
Notifications
You must be signed in to change notification settings - Fork 0
/
MyStruct.h
86 lines (69 loc) · 1.71 KB
/
MyStruct.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
//
// Created by Yingyu Wang on 12/4/2023.
#include <string>
#ifndef FASTOCC_FUNCS_H
#define FASTOCC_FUNCS_H
#include <Eigen/Dense>
#include <vector>
#include <tuple>
#endif //FASTOCC_FUNCS_H
struct ParamStruct{
float WeightO;
float WeightSmoothN;
bool EvaluateGT;
bool PosefromOdom;
bool ModeOdom; // If exists odometry inputs
bool ModeMulti; // If use multi-resolution mode
bool ModeKeyFrame; //If use the key-frames mode
int Sizei;
int Sizej;
float Scale;
double OriginX;
double OriginY;
// Multi-resolution mode
int DownTime;
int DownRate;
float SelectDistance;
int SelectKernelSize;
//Key-frame mode
int KeyframeRate;
// Paramters for Iteration Algorithm
int MaxIter;
double MinDelta;
double MinDeltaPose;
double MinMeanDeltaFirst;
double MinMeanDeltaPoseFirst;
double MapSmoothingWeightFirst;
double MapSmoothingWeightSecond;
//Convert Observations Parameters
int NumBeam;
double MinAngle;
double MaxAngle;
const double ValOccupied = 0.847297860387203;
const double ValFree = -0.405465108108164;
double MaxRange;
double MinRange;
//If Show Map
bool ModeShowMap;
// Sparse System Solver in the First Stage
bool ModeSparseSolver;
// For Iterative Solver
//First Stage
int SolverFirstMaxIter;
double SolverFirstTolerance;
//Second Stage
int SolverSecondMaxIter;
double SolverSecondTolerance;
// Submap Joining Parameters
int SubmapDevisionNum;
};
struct MapStruct {
Eigen::MatrixXd Grid;
Eigen::MatrixXd N;
Eigen::Vector2d Origin;
};
struct ScanStruct {
Eigen::MatrixXd XY;
Eigen::VectorXd Odd;
Eigen::VectorXd N;
};