@@ -81,8 +81,7 @@ bool ParseCommandLine(int argc, char* argv[],
8181 }
8282 boost::program_options::notify (*vm);
8383 } catch (std::exception& e) {
84- AERROR << " Error" << e.what ();
85- AERROR << desc;
84+ AERROR << " Error: " << e.what () << " " << desc;
8685 return false ;
8786 } catch (...) {
8887 AERROR << " Unknown error!" ;
@@ -246,8 +245,7 @@ int main(int argc, char** argv) {
246245 }
247246 fclose (file);
248247 } else {
249- AERROR << " Can't open file: "
250- << " ./lossless_map/config.txt" ;
248+ AERROR << " Can't open file: " << file_buf;
251249 }
252250
253251 LosslessMapNodePool lossless_map_node_pool (25 , 8 );
@@ -323,14 +321,14 @@ int main(int argc, char** argv) {
323321 std::vector<unsigned int > layer_counts;
324322 map.GetCountSafe (pt3d, zone_id, resolution_id, &layer_counts);
325323 if (layer_counts.empty ()) {
326- AINFO << " No ground layer, skip." ;
324+ ADEBUG << " No ground layer, skip." ;
327325 continue ;
328326 }
329327 if (layer_counts[layer_id] > 0 ) {
330328 std::vector<float > layer_alts;
331329 map.GetAltSafe (pt3d, zone_id, resolution_id, &layer_alts);
332330 if (layer_alts.empty ()) {
333- AINFO << " No ground points, skip." ;
331+ ADEBUG << " No ground points, skip." ;
334332 continue ;
335333 }
336334 float alt = layer_alts[layer_id];
0 commit comments