@@ -81,8 +81,7 @@ bool ParseCommandLine(int argc, char* argv[],
81
81
}
82
82
boost::program_options::notify (*vm);
83
83
} catch (std::exception & e) {
84
- AERROR << " Error" << e.what ();
85
- AERROR << desc;
84
+ AERROR << " Error: " << e.what () << " " << desc;
86
85
return false ;
87
86
} catch (...) {
88
87
AERROR << " Unknown error!" ;
@@ -246,8 +245,7 @@ int main(int argc, char** argv) {
246
245
}
247
246
fclose (file);
248
247
} else {
249
- AERROR << " Can't open file: "
250
- << " ./lossless_map/config.txt" ;
248
+ AERROR << " Can't open file: " << file_buf;
251
249
}
252
250
253
251
LosslessMapNodePool lossless_map_node_pool (25 , 8 );
@@ -323,14 +321,14 @@ int main(int argc, char** argv) {
323
321
std::vector<unsigned int > layer_counts;
324
322
map.GetCountSafe (pt3d, zone_id, resolution_id, &layer_counts);
325
323
if (layer_counts.empty ()) {
326
- AINFO << " No ground layer, skip." ;
324
+ ADEBUG << " No ground layer, skip." ;
327
325
continue ;
328
326
}
329
327
if (layer_counts[layer_id] > 0 ) {
330
328
std::vector<float > layer_alts;
331
329
map.GetAltSafe (pt3d, zone_id, resolution_id, &layer_alts);
332
330
if (layer_alts.empty ()) {
333
- AINFO << " No ground points, skip." ;
331
+ ADEBUG << " No ground points, skip." ;
334
332
continue ;
335
333
}
336
334
float alt = layer_alts[layer_id];
0 commit comments