@@ -50,34 +50,22 @@ using namespace std;
50
50
51
51
typedef pcl::PointXYZI PointType;
52
52
53
- extern const string pointCloudTopic = " velodyne_points" ;
54
- // extern const string imuTopic = "imu/data";
55
-
56
- // extern const string pointCloudTopic = "points_raw";
57
- extern const string imuTopic = " imu/correct" ;
53
+ extern const string pointCloudTopic = " /velodyne_points" ;
54
+ extern const string imuTopic = " /imu/data" ;
58
55
59
56
// Save pcd
60
57
extern const string fileDirectory = " /tmp/" ;
61
58
62
59
// Using velodyne cloud "ring" channel for image projection (other lidar may have different name for this channel, change "PointXYZIR" below)
63
60
extern const bool useCloudRing = true ; // if true, ang_res_y and ang_bottom are not used
64
61
65
-
66
- // VLP-64
67
- // extern const int N_SCAN = 64;
68
- // extern const int Horizon_SCAN = 1800;
69
- // extern const float ang_res_x = 0.2;
70
- // extern const float ang_res_y = 0.427;
71
- // extern const float ang_bottom = 24.9;
72
- // extern const int groundScanInd = 50;
73
-
74
62
// VLP-16
75
- extern const int N_SCAN = 16 ;
76
- extern const int Horizon_SCAN = 1800 ;
77
- extern const float ang_res_x = 0.2 ;
78
- extern const float ang_res_y = 2.0 ;
79
- extern const float ang_bottom = 15.0 +0.1 ;
80
- extern const int groundScanInd = 7 ;
63
+ extern const int N_SCAN = 16 ;
64
+ extern const int Horizon_SCAN = 1800 ;
65
+ extern const float ang_res_x = 0.2 ;
66
+ extern const float ang_res_y = 2.0 ;
67
+ extern const float ang_bottom = 15.0 +0.1 ;
68
+ extern const int groundScanInd = 7 ;
81
69
82
70
// HDL-32E
83
71
// extern const int N_SCAN = 32;
@@ -138,14 +126,14 @@ extern const float nearestFeatureSearchSqDist = 25;
138
126
139
127
140
128
// Mapping Params
141
- extern const float surroundingKeyframeSearchRadius = 250 .0 ; // key frame that is within n meters from current pose will be considerd for scan-to-map optimization (when loop closure disabled)
129
+ extern const float surroundingKeyframeSearchRadius = 50 .0 ; // key frame that is within n meters from current pose will be considerd for scan-to-map optimization (when loop closure disabled)
142
130
extern const int surroundingKeyframeSearchNum = 50 ; // submap size (when loop closure enabled)
143
131
// history key frames (history submap for loop closure)
144
- extern const float historyKeyframeSearchRadius = 30 .0 ; // key frame that is within n meters from current pose will be considerd for loop closure
145
- extern const int historyKeyframeSearchNum = 30 ; // 2n+1 number of hostory key frames will be fused into a submap for loop closure
146
- extern const float historyKeyframeFitnessScore = 1.5 ; // the smaller the better alignment
132
+ extern const float historyKeyframeSearchRadius = 7 .0 ; // key frame that is within n meters from current pose will be considerd for loop closure
133
+ extern const int historyKeyframeSearchNum = 25 ; // 2n+1 number of hostory key frames will be fused into a submap for loop closure
134
+ extern const float historyKeyframeFitnessScore = 0.3 ; // the smaller the better alignment
147
135
148
- extern const float globalMapVisualizationSearchRadius = 500 .0 ; // key frames with in n meters will be visualized
136
+ extern const float globalMapVisualizationSearchRadius = 100 .0 ; // key frames with in n meters will be visualized
149
137
150
138
151
139
struct smoothness_t {
0 commit comments