-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHdlCorrection.h
More file actions
40 lines (35 loc) · 1.89 KB
/
HdlCorrection.h
File metadata and controls
40 lines (35 loc) · 1.89 KB
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
#ifndef HDLCORRECTION_H
#define HDLCORRECTION_H
#include "../ugv-share/defines.h"
#include <string>
#include <fstream>
struct HdlCorrection
{
HdlCorrection(const std::string fileName);
float rotAngle[LASER_NUM]; //Correction of rotation angle for each laser. Corresponse to original 'm_rot'
float vertAngle[LASER_NUM]; //vertical angle correction.Corresponse to original 'm_vert'
float dist[LASER_NUM]; //distance system error, Corresponse to original m_dist
float vertOffset[LASER_NUM]; //vertical offset. Corresponse to original m_z_off
float horizOffset[LASER_NUM]; //horizantal offset. Corresponse to original m_x_off
//S2 new features:
float minIntensity[LASER_NUM]; //minIntensity. Corresponse to original m_min_i
float maxIntensity[LASER_NUM]; //maxIntensity. Corresponse to original m_max_i
float distX[LASER_NUM]; //distCorrectionX. Corresponse to original m_distX
float distY[LASER_NUM]; //distCorrectionY. Corresponse to original m_distY
float focalDist[LASER_NUM]; //focalDistance. Corresponse to original m_f_d
float focalSlope[LASER_NUM]; //focalSlope. Corresponse to original m_f_s
//for param calculation
float cos_rotAngle[LASER_NUM];//Corresponse to original m_cos_rot
float sin_rotAngle[LASER_NUM];//Corresponse to original m_sin_rot
float cos_vertAngle[LASER_NUM];//Corresponse to original m_cos_vert
float sin_vertAngle[LASER_NUM];//Corresponse to original m_sin_vert
float cos_raw[ANGLE_NUM];//Corresponse to original m_cos_raw
float sin_raw[ANGLE_NUM];//Corresponse to original m_sin_raw
//for sorting
int lasersort[LASER_NUM];//Corresponse to original rasersort
int layermark[LASER_NUM];//usage uncertain
//blockedByHipAngle is a positive number, just used to indicate the absolute value of the range
//This value is a constant
const unsigned short blockedByHipAngle;
};
#endif // HDLCORRECTION_H