diff --git a/map/map_loader/src/pointcloud_map_loader/pointcloud_map_loader_node.cpp b/map/map_loader/src/pointcloud_map_loader/pointcloud_map_loader_node.cpp index dc1b2d8a25cd7..4c30501cab6b0 100644 --- a/map/map_loader/src/pointcloud_map_loader/pointcloud_map_loader_node.cpp +++ b/map/map_loader/src/pointcloud_map_loader/pointcloud_map_loader_node.cpp @@ -95,14 +95,12 @@ std::map PointCloudMapLoaderNode::getPCDMetadata( pcd_metadata_dict = replaceWithAbsolutePath(pcd_metadata_dict, pcd_paths, missing_pcds); // Warning if some pcds are missing - if (!missing_pcds.empty()) - { + if (!missing_pcds.empty()) { std::ostringstream oss; oss << "The following segment(s) are missing from the input PCDs: " << std::endl; - - for (auto & fname : missing_pcds) - { + + for (auto & fname : missing_pcds) { oss << fname << std::endl; } diff --git a/map/map_loader/src/pointcloud_map_loader/utils.cpp b/map/map_loader/src/pointcloud_map_loader/utils.cpp index 638535e519785..76fecef9c4dac 100644 --- a/map/map_loader/src/pointcloud_map_loader/utils.cpp +++ b/map/map_loader/src/pointcloud_map_loader/utils.cpp @@ -50,12 +50,10 @@ std::map loadPCDMetadata(const std::string & pcd_m std::map replaceWithAbsolutePath( const std::map & pcd_metadata_path, - const std::vector & pcd_paths, - std::set & missing_pcd) + const std::vector & pcd_paths, std::set & missing_pcd) { // Initially, assume all segments are missing - for (auto & it : pcd_metadata_path) - { + for (auto & it : pcd_metadata_path) { missing_pcd.insert(it.first); } diff --git a/map/map_loader/src/pointcloud_map_loader/utils.hpp b/map/map_loader/src/pointcloud_map_loader/utils.hpp index 8826ce5c89375..a2c1f88500f58 100644 --- a/map/map_loader/src/pointcloud_map_loader/utils.hpp +++ b/map/map_loader/src/pointcloud_map_loader/utils.hpp @@ -39,8 +39,7 @@ struct PCDFileMetadata std::map loadPCDMetadata(const std::string & pcd_metadata_path); std::map replaceWithAbsolutePath( const std::map & pcd_metadata_path, - const std::vector & pcd_paths, - std::set & missing_pcds); + const std::vector & pcd_paths, std::set & missing_pcds); bool cylinderAndBoxOverlapExists( const double center_x, const double center_y, const double radius,