From 1ed763a8c0bde75a0c1fa5771789aa664f013b9c Mon Sep 17 00:00:00 2001 From: joanvallve <jvallve@iri.upc.edu> Date: Thu, 6 Feb 2025 16:30:31 +0100 Subject: [PATCH] license headers and pragma once --- .gitlab-ci.yml | 2 +- examples/polyline_demo.cpp | 22 +-- include/laser_scan_utils/corner_falko_2d.h | 29 ++-- include/laser_scan_utils/corner_finder.h | 23 ++- .../corner_finder_inscribed_angle.h | 23 ++- include/laser_scan_utils/corner_point.h | 23 ++- include/laser_scan_utils/grid_2d.h | 23 ++- include/laser_scan_utils/grid_cluster.h | 23 ++- include/laser_scan_utils/icp.h | 24 ++-- include/laser_scan_utils/laser_scan.h | 24 ++-- include/laser_scan_utils/laser_scan_utils.h | 22 ++- .../laser_scan_utils/laser_scan_with_params.h | 24 ++-- include/laser_scan_utils/line_finder.h | 23 ++- include/laser_scan_utils/line_finder_hough.h | 23 ++- .../laser_scan_utils/line_finder_iterative.h | 23 ++- .../laser_scan_utils/line_finder_jump_fit.h | 23 ++- include/laser_scan_utils/line_segment.h | 23 ++- include/laser_scan_utils/loop_closure_base.h | 29 ++-- include/laser_scan_utils/loop_closure_falko.h | 29 ++-- .../match_loop_closure_scene.h | 29 ++-- include/laser_scan_utils/point_set.h | 23 ++- include/laser_scan_utils/polyline.h | 23 ++- include/laser_scan_utils/scan_segment.h | 23 ++- include/laser_scan_utils/scene_base.h | 29 ++-- include/laser_scan_utils/scene_falko.h | 29 ++-- include/laser_scan_utils/scene_falko_base.h | 23 ++- scripts/license_header_2024.txt | 10 +- scripts/license_manager.sh | 132 ++++++++++++------ src/corner_falko_2d.cpp | 22 +-- src/corner_finder.cpp | 17 ++- src/corner_finder_inscribed_angle.cpp | 17 ++- src/corner_point.cpp | 17 ++- src/grid_2d.cpp | 17 ++- src/grid_cluster.cpp | 17 ++- src/icp.cpp | 17 ++- src/laser_scan.cpp | 17 ++- src/laser_scan_with_params.cpp | 17 ++- src/line_finder.cpp | 17 ++- src/line_finder_hough.cpp | 17 ++- src/line_finder_iterative.cpp | 17 ++- src/line_finder_jump_fit.cpp | 17 ++- src/line_segment.cpp | 17 ++- src/loop_closure_base.cpp | 22 +-- src/point_set.cpp | 17 ++- src/polyline.cpp | 17 ++- src/scan_segment.cpp | 17 ++- test/data/scan_data.h | 17 ++- test/gtest/utils_gtest.h | 28 ++-- test/gtest_example.cpp | 17 ++- test/gtest_icp.cpp | 17 ++- test/gtest_loop_closure_falko.cpp | 17 ++- 51 files changed, 514 insertions(+), 654 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ba8f3c6..e6825e2 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -56,7 +56,7 @@ stages: - export PREV_YEAR=$(( CURRENT_YEAR-1 )) - echo "Creating new file license_header_${CURRENT_YEAR}.txt..." - git mv license_header_${PREV_YEAR}.txt license_header_${CURRENT_YEAR}.txt - - sed -i "s/${PREV_YEAR}/${PREV_YEAR},${CURRENT_YEAR}/g" license_header_${CURRENT_YEAR}.txt + - sed -i "s/${PREV_YEAR}/${CURRENT_YEAR}/g" license_header_${CURRENT_YEAR}.txt - ./license_manager.sh --update --path=${CI_PROJECT_DIR} --license-header=license_header_${CURRENT_YEAR}.txt --exclude=ci_deps - fi - cd .. diff --git a/examples/polyline_demo.cpp b/examples/polyline_demo.cpp index 4bb848c..7b7e095 100644 --- a/examples/polyline_demo.cpp +++ b/examples/polyline_demo.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,14 +17,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file polyline_test.cpp - * - * Created on: Jul 5, 2016 - * \author: jvallve - */ //LaserScanUtils includes #include "laser_scan_utils/line_finder_iterative.h" diff --git a/include/laser_scan_utils/corner_falko_2d.h b/include/laser_scan_utils/corner_falko_2d.h index 94911a4..bbbe059 100644 --- a/include/laser_scan_utils/corner_falko_2d.h +++ b/include/laser_scan_utils/corner_falko_2d.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,17 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file corner_falko_2d.h - * - * Created on: Jan 26, 2021 - * \author: spujol - */ -#ifndef CORNER_FALKO_2D_H_ -#define CORNER_FALKO_2D_H_ +#pragma once #include <fstream> #include <iostream> @@ -135,6 +126,4 @@ public: int refSceneAddingTh = 4; }; -} /* namespace laserscanutils */ - -#endif /* LANDMARK_POLYLINE_2d_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/include/laser_scan_utils/corner_finder.h b/include/laser_scan_utils/corner_finder.h index fdab44a..d1bee1f 100644 --- a/include/laser_scan_utils/corner_finder.h +++ b/include/laser_scan_utils/corner_finder.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef CORNER_FINDER_H_ -#define CORNER_FINDER_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -119,5 +117,4 @@ class CornerFinder virtual void print() const; }; -} //namespace -#endif +} //namespace \ No newline at end of file diff --git a/include/laser_scan_utils/corner_finder_inscribed_angle.h b/include/laser_scan_utils/corner_finder_inscribed_angle.h index 6f16c9c..2a12090 100644 --- a/include/laser_scan_utils/corner_finder_inscribed_angle.h +++ b/include/laser_scan_utils/corner_finder_inscribed_angle.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef CORNER_FINDER_INSCRIBED_ANGLE_H_ -#define CORNER_FINDER_INSCRIBED_ANGLE_H_ + +#pragma once //laserscanutils #include "corner_finder.h" @@ -103,5 +101,4 @@ class CornerFinderInscribedAngle : public CornerFinder **/ void print() const override; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/corner_point.h b/include/laser_scan_utils/corner_point.h index a85ff03..327d60c 100644 --- a/include/laser_scan_utils/corner_point.h +++ b/include/laser_scan_utils/corner_point.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef CORNER_POINT_H_ -#define CORNER_POINT_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -91,5 +89,4 @@ class CornerPoint //print void print() const; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/grid_2d.h b/include/laser_scan_utils/grid_2d.h index 00b6154..b8b3d9d 100644 --- a/include/laser_scan_utils/grid_2d.h +++ b/include/laser_scan_utils/grid_2d.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,11 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef GRID2D_H -#define GRID2D_H +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -279,6 +276,4 @@ class Grid2D }; -}//end of namespace - -#endif +}//end of namespace \ No newline at end of file diff --git a/include/laser_scan_utils/grid_cluster.h b/include/laser_scan_utils/grid_cluster.h index 026b621..a7282af 100644 --- a/include/laser_scan_utils/grid_cluster.h +++ b/include/laser_scan_utils/grid_cluster.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef GRID_CLUSTER_H_ -#define GRID_CLUSTER_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -61,5 +59,4 @@ class GridCluster : public PointSet //print void print() const override; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/icp.h b/include/laser_scan_utils/icp.h index 2d3376f..bcdfa42 100644 --- a/include/laser_scan_utils/icp.h +++ b/include/laser_scan_utils/icp.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef ICP_H_ -#define ICP_H_ + +#pragma once #include "laser_scan.h" #include <chrono> @@ -233,6 +231,4 @@ namespace laserscanutils static void printTwoLaserData(sm_params ¶ms); static void printLaserData(LDP &laser_data); }; -} - -#endif +} \ No newline at end of file diff --git a/include/laser_scan_utils/laser_scan.h b/include/laser_scan_utils/laser_scan.h index 144f031..f14e7dd 100644 --- a/include/laser_scan_utils/laser_scan.h +++ b/include/laser_scan_utils/laser_scan.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LASER_SCAN_H_ -#define LASER_SCAN_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -194,6 +192,4 @@ class LaserScan }; -} //namespace -#endif - +} //namespace \ No newline at end of file diff --git a/include/laser_scan_utils/laser_scan_utils.h b/include/laser_scan_utils/laser_scan_utils.h index b055283..33adec2 100644 --- a/include/laser_scan_utils/laser_scan_utils.h +++ b/include/laser_scan_utils/laser_scan_utils.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,11 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef TYPES_LASER_SCAN_UTILS_H_ -#define TYPES_LASER_SCAN_UTILS_H_ +#pragma once //includes from Eigen lib #include <Eigen/Dense> @@ -59,5 +56,4 @@ namespace Eigen // 2. Quaternions and other rotation things typedef Quaternion<laserscanutils::ScalarT> Quaternions; ///< Quaternion of real scalar_t type typedef AngleAxis<laserscanutils::ScalarT> AngleAxiss; ///< Angle-Axis of real scalar_t type -} -#endif +} \ No newline at end of file diff --git a/include/laser_scan_utils/laser_scan_with_params.h b/include/laser_scan_utils/laser_scan_with_params.h index db93fc0..5ff9b18 100644 --- a/include/laser_scan_utils/laser_scan_with_params.h +++ b/include/laser_scan_utils/laser_scan_with_params.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LASER_SCAN_WITH_PARAMS_H_ -#define LASER_SCAN_WITH_PARAMS_H_ + +#pragma once //laserscanutils #include "laser_scan.h" @@ -57,6 +55,4 @@ class LaserScanWithParams : public LaserScan }; -} //namespace -#endif - +} //namespace \ No newline at end of file diff --git a/include/laser_scan_utils/line_finder.h b/include/laser_scan_utils/line_finder.h index 5696da1..5df2fb6 100644 --- a/include/laser_scan_utils/line_finder.h +++ b/include/laser_scan_utils/line_finder.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LINE_FINDER_H_ -#define LINE_FINDER_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -119,5 +117,4 @@ class LineFinder **/ virtual void print() const; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/line_finder_hough.h b/include/laser_scan_utils/line_finder_hough.h index 1b4f884..97bc5c0 100644 --- a/include/laser_scan_utils/line_finder_hough.h +++ b/include/laser_scan_utils/line_finder_hough.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LINE_FINDER_HOUGH_H_ -#define LINE_FINDER_HOUGH_H_ + +#pragma once //laserscanutils #include "line_finder.h" @@ -110,5 +108,4 @@ class LineFinderHough : public LineFinder **/ void print() const override; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/line_finder_iterative.h b/include/laser_scan_utils/line_finder_iterative.h index c68055c..19aced8 100644 --- a/include/laser_scan_utils/line_finder_iterative.h +++ b/include/laser_scan_utils/line_finder_iterative.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LINE_FINDER_ITERATIVE_H_ -#define LINE_FINDER_ITERATIVE_H_ + +#pragma once //laserscanutils #include "line_finder.h" @@ -194,5 +192,4 @@ class LineFinderIterative : public LineFinder }; -} //namespace -#endif +} //namespace \ No newline at end of file diff --git a/include/laser_scan_utils/line_finder_jump_fit.h b/include/laser_scan_utils/line_finder_jump_fit.h index ed3acb1..6df0a3b 100644 --- a/include/laser_scan_utils/line_finder_jump_fit.h +++ b/include/laser_scan_utils/line_finder_jump_fit.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LINE_FINDER_JUMP_FIT_H_ -#define LINE_FINDER_JUMP_FIT_H_ + +#pragma once //laserscanutils #include "line_finder.h" @@ -105,5 +103,4 @@ class LineFinderJumpFit : public LineFinder **/ void print() const override; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/line_segment.h b/include/laser_scan_utils/line_segment.h index 6b5b28a..e97a305 100644 --- a/include/laser_scan_utils/line_segment.h +++ b/include/laser_scan_utils/line_segment.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef LINE_SEGMENT_H_ -#define LINE_SEGMENT_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -106,5 +104,4 @@ class LineSegment //print void print() const; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/loop_closure_base.h b/include/laser_scan_utils/loop_closure_base.h index 92fe92b..a40c53b 100644 --- a/include/laser_scan_utils/loop_closure_base.h +++ b/include/laser_scan_utils/loop_closure_base.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,17 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file loop_closure_base_2d.h - * - * Created on: Feb 9, 2021 - * \author: spujol - */ -#ifndef LOOP_CLOSURE_BASE_2D_H_ -#define LOOP_CLOSURE_BASE_2D_H_ +#pragma once #include <fstream> #include <iostream> @@ -86,6 +77,4 @@ namespace laserscanutils return matchings; } }; -} /* namespace laserscanutils */ - -#endif /* LOOP_CLOSURE_BASE_2D_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/include/laser_scan_utils/loop_closure_falko.h b/include/laser_scan_utils/loop_closure_falko.h index c5b3e1d..0f45222 100644 --- a/include/laser_scan_utils/loop_closure_falko.h +++ b/include/laser_scan_utils/loop_closure_falko.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,17 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file loop_closure_base_2d.h - * - * Created on: Feb 9, 2021 - * \author: spujol - */ -#ifndef LOOP_CLOSURE_FALKO_H_ -#define LOOP_CLOSURE_FALKO_H_ +#pragma once #include <fstream> #include <iostream> @@ -539,6 +530,4 @@ template <class D, class Extr> class LoopClosureFalkoNn : public LoopClosureFalk }; }; -} /* namespace laserscanutils */ - -#endif /* LOOP_CLOSURE_FALKO_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/include/laser_scan_utils/match_loop_closure_scene.h b/include/laser_scan_utils/match_loop_closure_scene.h index 9805393..d15ca18 100644 --- a/include/laser_scan_utils/match_loop_closure_scene.h +++ b/include/laser_scan_utils/match_loop_closure_scene.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,17 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file match_loop_closure.h - * - * Created on: Feb 15, 2021 - * \author: spujol - */ -#ifndef MATCH_LOOP_CLOSURE_SCENE_H_ -#define MATCH_LOOP_CLOSURE_SCENE_H_ +#pragma once #include <fstream> #include <iostream> @@ -52,6 +43,4 @@ struct MatchLoopClosureScene { typedef std::shared_ptr<MatchLoopClosureScene> MatchLoopClosureScenePtr; -} /* namespace laserscanutils */ - -#endif /* MATCH_LOOP_CLOSURE_SCENE_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/include/laser_scan_utils/point_set.h b/include/laser_scan_utils/point_set.h index 1dc8b8e..19f9f3e 100644 --- a/include/laser_scan_utils/point_set.h +++ b/include/laser_scan_utils/point_set.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef POINT_SET_H_ -#define POINT_SET_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -130,5 +128,4 @@ class PointSet //print virtual void print() const; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/polyline.h b/include/laser_scan_utils/polyline.h index 03012f6..dc38190 100644 --- a/include/laser_scan_utils/polyline.h +++ b/include/laser_scan_utils/polyline.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef POLYLINE_H_ -#define POLYLINE_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -62,5 +60,4 @@ class Polyline //compute lines between points void computeLines(); }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/scan_segment.h b/include/laser_scan_utils/scan_segment.h index 21520f7..04a56b7 100644 --- a/include/laser_scan_utils/scan_segment.h +++ b/include/laser_scan_utils/scan_segment.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,10 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef SCAN_SEGMENT_H_ -#define SCAN_SEGMENT_H_ + +#pragma once //laserscanutils #include "laser_scan_utils.h" @@ -66,5 +64,4 @@ class ScanSegment : public PointSet //print void print() const override; }; -}//namespace -#endif +}//namespace \ No newline at end of file diff --git a/include/laser_scan_utils/scene_base.h b/include/laser_scan_utils/scene_base.h index cb3d222..fee3cf3 100644 --- a/include/laser_scan_utils/scene_base.h +++ b/include/laser_scan_utils/scene_base.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,17 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file scene_base.h - * - * Created on: Feb 9, 2021 - * \author: spujol - */ -#ifndef SCENE_BASE_H_ -#define SCENE_BASE_H_ +#pragma once #include <fstream> #include <iostream> @@ -50,6 +41,4 @@ struct SceneBase }; typedef std::shared_ptr<SceneBase> sceneBasePtr; -} /* namespace laserscanutils */ - -#endif /* SCENE_BASE_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/include/laser_scan_utils/scene_falko.h b/include/laser_scan_utils/scene_falko.h index 3775176..997a1ef 100644 --- a/include/laser_scan_utils/scene_falko.h +++ b/include/laser_scan_utils/scene_falko.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,17 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file scene_falko.h - * - * Created on: Feb 9, 2021 - * \author: spujol - */ -#ifndef SCENE_FALKO_H_ -#define SCENE_FALKO_H_ +#pragma once #include <fstream> #include <iostream> @@ -60,6 +51,4 @@ template <typename D> struct SceneFalko : public SceneFalkoBase std::vector<double> angle_rotation_; }; -} /* namespace laserscanutils */ - -#endif /* SCENE_FALKO_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/include/laser_scan_utils/scene_falko_base.h b/include/laser_scan_utils/scene_falko_base.h index 62f7915..73ee77f 100644 --- a/include/laser_scan_utils/scene_falko_base.h +++ b/include/laser_scan_utils/scene_falko_base.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,11 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -#ifndef SCENE_FALKO_BASE_H_ -#define SCENE_FALKO_BASE_H_ +#pragma once #include <fstream> #include <iostream> @@ -51,6 +48,4 @@ struct SceneFalkoBase : public SceneBase std::vector<falkolib::FALKO> keypoints_list_rotated_reverse_; }; -} /* namespace laserscanutils */ - -#endif /* SCENE_FALKO_H_ */ +} /* namespace laserscanutils */ \ No newline at end of file diff --git a/scripts/license_header_2024.txt b/scripts/license_header_2024.txt index 4ce8568..8ee8def 100644 --- a/scripts/license_header_2024.txt +++ b/scripts/license_header_2024.txt @@ -1,9 +1,11 @@ -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. diff --git a/scripts/license_manager.sh b/scripts/license_manager.sh index 74f790a..888b156 100755 --- a/scripts/license_manager.sh +++ b/scripts/license_manager.sh @@ -4,9 +4,7 @@ # # This script is used for managing the license headers of code files (.h, .c, .cpp, .hpp) # This file is automatically called by the CI in gitlab. - -line_start_mark="//--------LICENSE_START--------" -line_end_mark="//--------LICENSE_END--------" +echo "==== WOLF license_manager script ====" #options tmp=false @@ -14,7 +12,10 @@ mode="none" path="" exclude_folder="" #recursive=true -license="" +#license="" +config_folder="" +license_exclude="" +exclude_mark="// This is not part of LaserScanUtils" for i in "$@"; do case $i in @@ -26,22 +27,22 @@ for i in "$@"; do path="${i#*=}" shift # past argument=value ;; - --license-header=*) - license="${i#*=}" + --config-path=*) + config_folder="${i#*=}" shift # past argument=value ;; --add) mode="add" - if [ $mode == "update" ]; then - echo "Error: Script cannot be called with both options: --update or --add" + if [ $mode == "remove" ]; then + echo "Script cannot be called with both options: --remove or --add">&2 exit 1 fi shift # past argument=value ;; - --update) - mode="update" + --remove) + mode="remove" if [ $mode == "add" ]; then - echo "Error: Script cannot be called with both options: --update or --add" + echo "Script cannot be called with both options: --remove or --add">&2 exit 1 fi shift # past argument=value @@ -56,29 +57,45 @@ for i in "$@"; do esac done -# check options +# CHECKS VALID OPTIONS ================================= if [ "$path" == "" ]; then - echo 'Please, provide the path to the folder containing the code with --path=/my/folder/code' + echo 'Please, provide the path to the folder containing the code with --path=/my/folder/code'>&2 exit 1 else if [ -d "$path" ]; then echo "Valid path: ${path}" else - echo "Error: ${path} not found. Can not continue." - exit 1 + echo "${path} not found. Can not continue.">&2 + exit 1 fi fi -if [ "$license" == "" ]; then - echo 'Error: Please, provide the path to the folder containing the code with --license-header=/my/license/header/file.txt' +if [ "$config_folder" == "" ]; then + echo 'Please, provide the path to the folder containing the config files (license file "license_header*.txt" and the optional "license_exclude.txt") with --config-path=/my/license/and/exclude/files/folder'>&2 exit 1 else - if [ -f "$license" ]; then - echo "Valid license header file: ${license} containing:" - cat ${license} + if [ -d "$config_folder" ]; then + echo "Valid config folder: ${config_folder}" + + license=$(find $config_folder -maxdepth 1 -name 'license_header*.txt') + if (( ${#license[@]} != 1 )); then + echo "No license header file found" >&2 + fi + if [ -f "$license" ]; then + echo "Valid license header file: ${license} containing:" + cat ${license} + else + echo "License header file ${license} not found.">&2 + exit 1 + fi + if [ -f "${config_folder}/license_exclude.txt" ]; then + echo "License_exclude file containing:" + cat ${config_folder}/license_exclude.txt + echo "" + fi else - echo "Error: License header file ${license} not found. Can not continue." - exit 1 + echo "Config path ${config_folder} not found.">&2 + exit 1 fi fi @@ -86,17 +103,30 @@ if [ "$exclude_folder" == "" ]; then echo "No folders will be excluded" else if [ -d "${path}/${exclude_folder}" ]; then - echo "Valid remove folder path: ${path}/${exclude_folder}" + echo "Valid exclude folder path: ${path}/${exclude_folder}" + else + echo "exclude folder ${path}/${exclude_folder} not found. Remember that it should be relative to --path.">&2 + exit 1 fi fi if [ $mode == "none" ]; then - echo "Error: Script should be called with one of the following options: --update or --add" + echo "Script should be called with one of the following options: --remove or --add">&2 exit 1 else echo "mode: ${mode}" fi +# START SCRIPT ========================================== + +# DETECT FIRST AND LAST LICENSE LINES +sed -i -e '/./,$!d' -e :a -e '/^\n*$/{$d;N;ba' -e '}' $license #remove empty lines at the beginning and at the end +line_start_mark=$(head -n 1 $license) +line_end_mark=$(tail -n 1 $license) +echo "line_start: $line_start_mark" +echo "line_end: $line_end_mark" +echo "excluding files starting with: $exclude_mark" + # PATH (AND tmp FOLDER) folder=$path if [ $tmp == true ]; then @@ -110,35 +140,47 @@ fi if [ "$exclude_folder" == "" ]; then file_list=$(find $folder -name '*.c' -or -name '*.cpp' -or -name '*.h' -or -name '*.hpp') else - file_list=$(find $folder -path ${folder}/${exclude_folder} -prune -name '*.c' -or -name '*.cpp' -or -name '*.h' -or -name '*.hpp') + file_list=$(find $folder -path ${path}/${exclude_folder} -prune -name '*.c' -or -name '*.cpp' -or -name '*.h' -or -name '*.hpp') fi +# FILTER FILES IF LICENSE EXCLUDE +if [ -f "${config_folder}/license_exclude.txt" ]; then + file_list=$(grep -Ev -f ${config_folder}/license_exclude.txt <(printf "%s\n" "${file_list[@]}")) +fi +# printf "%s\n" "${file_list[@]}" + # DETECT AND REMOVE EXISTING LICENSE -if [ "$mode" == "update" ]; then - echo "Recursely removing license header from all files (.c, .cpp, .h, .hpp)" +if [ "$mode" == "remove" ]; then + echo "Recursely removing license header from all files (.c, .cpp, .h, .hpp):" for i in $file_list do - if grep -Fxq ${line_start_mark} $i - then - echo " Removing license header from file ${i}" - line_start="$(grep -wn $line_start_mark ${i} | head -n 1 | cut -d: -f1)" - line_end="$(grep -wn $line_end_mark ${i} | head -n 1 | cut -d: -f1)" - #echo ${line_start} - #echo ${line_end} + if grep -m1 -Fxq "${line_start_mark}" $i; then + echo " - ${i}" + line_start="$(grep -Fxn "$line_start_mark" ${i} | head -n 1 | cut -d: -f1)" + line_end="$(grep -Fxn "$line_end_mark" ${i} | head -n 1 | cut -d: -f1)" + # echo ${line_start} + # echo ${line_end} awk -v m=$line_start -v n=$line_end 'm <= NR && NR <= n {next} {print}' $i > tmpfile && mv tmpfile $i - #cat $i + # cat $i fi done fi # ADD CONTENT OF license-file AT THE BEGINNING OF CODE FILES -echo "Recursively adding license header to all files (.c, .cpp, .h, .hpp)" -for i in $file_list -do - if grep -Fxq ${line_start_mark} $i; then - echo "skippping ${i}" - else - ( echo ${line_start_mark}$'\n//'; cat ${license}; echo $'//\n'${line_end_mark}; cat $i ) > temp_file - mv temp_file $i - fi -done +if [ "$mode" == "add" ]; then + echo "Recursively adding license header to all files (.c, .cpp, .h, .hpp):" + for i in $file_list + do + if grep -m1 -Fxq "${exclude_mark}" $i; then + echo "excluding ${i} since it contains exclude mark" + else + if grep -m1 -Fxq "${line_start_mark}" $i; then + : + else + echo " - ${i}" + ( cat ${license}; cat $i ) > temp_file + mv temp_file $i + fi + fi + done +fi diff --git a/src/corner_falko_2d.cpp b/src/corner_falko_2d.cpp index 1b49e33..b501a99 100644 --- a/src/corner_falko_2d.cpp +++ b/src/corner_falko_2d.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,14 +17,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file corner_falko_2d.cpp - * - * Created on: Jan 26, 2021 - * \author: spujol - */ #include "laser_scan_utils/corner_falko_2d.h" diff --git a/src/corner_finder.cpp b/src/corner_finder.cpp index 023b6cd..68aaf99 100644 --- a/src/corner_finder.cpp +++ b/src/corner_finder.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/corner_finder.h" namespace laserscanutils diff --git a/src/corner_finder_inscribed_angle.cpp b/src/corner_finder_inscribed_angle.cpp index 5e8d7e4..2fabede 100644 --- a/src/corner_finder_inscribed_angle.cpp +++ b/src/corner_finder_inscribed_angle.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/corner_finder_inscribed_angle.h" namespace laserscanutils diff --git a/src/corner_point.cpp b/src/corner_point.cpp index ebc5338..6b82c68 100644 --- a/src/corner_point.cpp +++ b/src/corner_point.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/corner_point.h" //open namespace diff --git a/src/grid_2d.cpp b/src/grid_2d.cpp index a9cafde..49282c0 100644 --- a/src/grid_2d.cpp +++ b/src/grid_2d.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/grid_2d.h" diff --git a/src/grid_cluster.cpp b/src/grid_cluster.cpp index aa12943..288a5d6 100644 --- a/src/grid_cluster.cpp +++ b/src/grid_cluster.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/grid_cluster.h" namespace laserscanutils diff --git a/src/icp.cpp b/src/icp.cpp index ba02420..14f5c01 100644 --- a/src/icp.cpp +++ b/src/icp.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/icp.h" #include <algorithm> #include <unistd.h> diff --git a/src/laser_scan.cpp b/src/laser_scan.cpp index 18a0cb2..317452f 100644 --- a/src/laser_scan.cpp +++ b/src/laser_scan.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/laser_scan.h" namespace laserscanutils diff --git a/src/laser_scan_with_params.cpp b/src/laser_scan_with_params.cpp index 7bfe8b2..5f8c026 100644 --- a/src/laser_scan_with_params.cpp +++ b/src/laser_scan_with_params.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/laser_scan_with_params.h" diff --git a/src/line_finder.cpp b/src/line_finder.cpp index 964482a..8df6687 100644 --- a/src/line_finder.cpp +++ b/src/line_finder.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/line_finder.h" namespace laserscanutils diff --git a/src/line_finder_hough.cpp b/src/line_finder_hough.cpp index 79a2e3c..143c96a 100644 --- a/src/line_finder_hough.cpp +++ b/src/line_finder_hough.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/line_finder_hough.h" namespace laserscanutils diff --git a/src/line_finder_iterative.cpp b/src/line_finder_iterative.cpp index bd6150c..b59a3ae 100644 --- a/src/line_finder_iterative.cpp +++ b/src/line_finder_iterative.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/line_finder_iterative.h" namespace laserscanutils diff --git a/src/line_finder_jump_fit.cpp b/src/line_finder_jump_fit.cpp index 614049c..9e284db 100644 --- a/src/line_finder_jump_fit.cpp +++ b/src/line_finder_jump_fit.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/line_finder_jump_fit.h" namespace laserscanutils diff --git a/src/line_segment.cpp b/src/line_segment.cpp index 66d3a55..90971f6 100644 --- a/src/line_segment.cpp +++ b/src/line_segment.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/line_segment.h" namespace laserscanutils diff --git a/src/loop_closure_base.cpp b/src/loop_closure_base.cpp index 68c76bf..26632d3 100644 --- a/src/loop_closure_base.cpp +++ b/src/loop_closure_base.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,14 +17,6 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file loop_closure_base_2d.h - * - * Created on: Feb 9, 2021 - * \author: spujol - */ #include "laser_scan_utils/loop_closure_base.h" diff --git a/src/point_set.cpp b/src/point_set.cpp index 80b1eb2..b281710 100644 --- a/src/point_set.cpp +++ b/src/point_set.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/scan_segment.h" namespace laserscanutils diff --git a/src/polyline.cpp b/src/polyline.cpp index 75e1ab8..59fee5e 100644 --- a/src/polyline.cpp +++ b/src/polyline.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/polyline.h" namespace laserscanutils diff --git a/src/scan_segment.cpp b/src/scan_segment.cpp index 7abb6ea..e19bc7e 100644 --- a/src/scan_segment.cpp +++ b/src/scan_segment.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "laser_scan_utils/scan_segment.h" namespace laserscanutils diff --git a/test/data/scan_data.h b/test/data/scan_data.h index 4c48f05..660bc89 100644 --- a/test/data/scan_data.h +++ b/test/data/scan_data.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + /** * FALKOLib - Fast Adaptive Laser Keypoint Orientation-invariant * Copyright (C) 2016 Fabjan Kallasi and Dario Lodi Rizzini. diff --git a/test/gtest/utils_gtest.h b/test/gtest/utils_gtest.h index 15ab238..0c39d4d 100644 --- a/test/gtest/utils_gtest.h +++ b/test/gtest/utils_gtest.h @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,18 +17,8 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- -/** - * \file utils_gtest.h - * \brief Some utils for gtest - * \author Jeremie Deray - * Created on: 26/09/2016 - * Eigen macros extension by: Joan Sola on 26/04/2017 - */ -#ifndef GNSSUTILS_UTILS_GTEST_H -#define GNSSUTILS_UTILS_GTEST_H +#pragma once #include <gtest/gtest.h> @@ -163,5 +153,3 @@ TEST(Test, Foo) C_expect, C_actual); } // namespace testing - -#endif /* GNSSUTILS_UTILS_GTEST_H */ diff --git a/test/gtest_example.cpp b/test/gtest_example.cpp index 3fd271c..5c5c860 100644 --- a/test/gtest_example.cpp +++ b/test/gtest_example.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "gtest/utils_gtest.h" TEST(TestTest, DummyTestExample) diff --git a/test/gtest_icp.cpp b/test/gtest_icp.cpp index ca66669..d4b9e66 100644 --- a/test/gtest_icp.cpp +++ b/test/gtest_icp.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "gtest/utils_gtest.h" #include "laser_scan_utils/laser_scan.h" #include "laser_scan_utils/icp.h" diff --git a/test/gtest_loop_closure_falko.cpp b/test/gtest_loop_closure_falko.cpp index 6225f5f..31d7289 100644 --- a/test/gtest_loop_closure_falko.cpp +++ b/test/gtest_loop_closure_falko.cpp @@ -1,14 +1,14 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// LaserScanUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Andreu Corominas Murtra (acorominas@iri.upc.edu) // All rights reserved. // -// This file is part of laser_scan_utils -// laser_scan_utils is free software: you can redistribute it and/or modify +// This file is part of gnss_utils +// gnss_utils is free software: you can redistribute it and/or modify // it under the terms of the GNU Lesser General Public License as published by // the Free Software Foundation, either version 3 of the License, or -// at your option) any later version. +// (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -17,8 +17,7 @@ // // You should have received a copy of the GNU Lesser General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. -// -//--------LICENSE_END-------- + #include "gtest/utils_gtest.h" #include "data/scan_data.h" #include "laser_scan_utils/loop_closure_base.h" -- GitLab