forked from BrenYi/Light-LOAM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
paramter_configuration_for_benchmarks.txt
61 lines (51 loc) · 2.17 KB
/
paramter_configuration_for_benchmarks.txt
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
//For A-LOAM:
//Modified code for KITTI dataset
//Please comment out lines 189 to 199 in the scanRegistration.cpp file and then insert a new code segment in that space.
/*
if (angle >= -8.83)
scanID = int((2 - angle) * 3.0 + 0.5);
else
scanID = N_SCANS / 2 + int((-8.83 - angle) * 2.0 + 0.5);
// use [0 50] > 50 remove outlies
if (angle > 2 || angle < -24.33 || scanID > 50 || scanID < 0)
{
count--;
continue;
}
*/
float upBound = 2
float lowerBound = -24.9;
float _factor = (N_SCANS-1) / (upBound - lowerBound);
scanID = int((angle - lowerBound) * _factor + 0.5);
if (scanID >= N_SCANS || scanID < 0)
{
count--;
continue;
}
//Modified code for M2DGR dataset
//Please comment out line 180 in the scanRegistration.cpp file and then insert a new code segment in that space.
// scanID = int((angle + 92.0/3.0) * 3.0 / 4.0);
float upBound = 15
float lowerBound = -25;
float _factor = (N_SCANS-1) / (upBound - lowerBound);
scanID = int((angle - lowerBound) * _factor + 0.5);
//For LeGO-LOAM, reconmend
//Reference code:https://github.com/Mitchell-Lee-93/kitti-lego-loam/tree/master
//Modified code for KITTI dataset
//Please comment out the original configuration for LIDAR in utility.h file and then insert a new code segment in that space.
//Vel 64
extern const int N_SCAN = 64;
extern const int Horizon_SCAN = 1800;
extern const float ang_res_x = 0.2;
extern const float ang_res_y = 0.427;
extern const float ang_bottom = 24.9;
extern const int groundScanInd = 50;
//Modified code for M2DGR dataset
//Please comment out the original configuration for LIDAR in utility.h file and then insert a new code segment in that space.
// VPL-32C
extern const int N_SCAN = 32;
extern const int Horizon_SCAN = 1800;
extern const float ang_res_x = 360.0/float(Horizon_SCAN);
extern const float ang_res_y = 40/float(N_SCAN-1);
extern const float ang_bottom = 25;
extern const int groundScanInd = 23;