From d31f6d6c0f3f20bfac98dbf8aa89e3d17a85a004 Mon Sep 17 00:00:00 2001 From: joanvallve <jvallve@iri.upc.edu> Date: Thu, 6 Feb 2025 16:30:15 +0100 Subject: [PATCH] license headers and pragma once --- .gitlab-ci.yml | 2 +- include/gnss_utils/gnss_utils.h | 19 ++- include/gnss_utils/navigation.h | 18 ++- include/gnss_utils/observations.h | 18 ++- include/gnss_utils/range.h | 24 +--- include/gnss_utils/receiver_raw_base.h | 18 ++- include/gnss_utils/receivers/novatel_raw.h | 19 ++- include/gnss_utils/receivers/ublox_raw.h | 19 ++- include/gnss_utils/snapshot.h | 18 ++- include/gnss_utils/tdcp.h | 19 ++- include/gnss_utils/utils/chisquare_ci.h | 24 +--- include/gnss_utils/utils/chisquare_ci_maps.h | 19 ++- include/gnss_utils/utils/rcv_position.h | 23 +--- include/gnss_utils/utils/satellite.h | 23 +--- include/gnss_utils/utils/transformations.h | 23 +--- include/gnss_utils/utils/utils.h | 17 +-- internal/config.h.in | 7 +- scripts/license_header_2025.txt | 7 +- scripts/license_manager.sh | 132 ++++++++++++------- src/examples/gnss_utils_test.cpp | 13 +- src/navigation.cpp | 13 +- src/observations.cpp | 13 +- src/range.cpp | 17 +-- src/receiver_raw_base.cpp | 13 +- src/receivers/novatel_raw.cpp | 13 +- src/receivers/ublox_raw.cpp | 13 +- src/snapshot.cpp | 13 +- src/tdcp.cpp | 13 +- src/utils/rcv_position.cpp | 17 +-- src/utils/satellite.cpp | 17 +-- src/utils/transformations.cpp | 13 +- src/utils/utils.cpp | 13 +- test/gtest/utils_gtest.h | 25 +--- test/gtest_chisquare.cpp | 13 +- test/gtest_example.cpp | 13 +- test/gtest_navigation.cpp | 13 +- test/gtest_observations.cpp | 13 +- test/gtest_tdcp.cpp | 13 +- test/gtest_transformations.cpp | 13 +- 39 files changed, 343 insertions(+), 390 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 166c4ec..e041946 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,7 +50,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 - fi - cd .. diff --git a/include/gnss_utils/gnss_utils.h b/include/gnss_utils/gnss_utils.h index a7c2dcc..332e175 100644 --- a/include/gnss_utils/gnss_utils.h +++ b/include/gnss_utils/gnss_utils.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_GNSS_UTILS_H_ -#define INCLUDE_GNSS_UTILS_GNSS_UTILS_H_ + +#pragma once extern "C" { #include "rtklib.h" @@ -229,6 +228,4 @@ enum Combination -} - -#endif +} \ No newline at end of file diff --git a/include/gnss_utils/navigation.h b/include/gnss_utils/navigation.h index af567d1..9884ff1 100644 --- a/include/gnss_utils/navigation.h +++ b/include/gnss_utils/navigation.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_NAVIGATION_H_ -#define INCLUDE_GNSS_UTILS_NAVIGATION_H_ + +#pragma once #include "gnss_utils/gnss_utils.h" #include "gnss_utils/utils/utils.h" @@ -247,5 +246,4 @@ inline void Navigation::freeNavArrays(nav_t& nav) freeFcb(nav); } -} // namespace GnssUtils -#endif // INCLUDE_GNSS_UTILS_NAVIGATION_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/observations.h b/include/gnss_utils/observations.h index 96280eb..294f87a 100644 --- a/include/gnss_utils/observations.h +++ b/include/gnss_utils/observations.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_OBSERVATIONS_H_ -#define INCLUDE_GNSS_UTILS_OBSERVATIONS_H_ + +#pragma once #include "gnss_utils/gnss_utils.h" @@ -178,5 +177,4 @@ inline bool Observations::operator!=(const Observations& other_obs) const return !(*this == other_obs); } -} // namespace GnssUtils -#endif // INCLUDE_GNSS_UTILS_OBSERVATIONS_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/range.h b/include/gnss_utils/range.h index bd5016c..c3f8ec6 100644 --- a/include/gnss_utils/range.h +++ b/include/gnss_utils/range.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,17 +18,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-------- -/* - * range.h - * - * Created on: May 28, 2020 - * Author: joanvallve - */ -#ifndef INCLUDE_GNSS_UTILS_RANGE_H_ -#define INCLUDE_GNSS_UTILS_RANGE_H_ +#pragma once #include "gnss_utils/gnss_utils.h" #include "gnss_utils/observations.h" @@ -70,6 +62,4 @@ class Range double computeSagnacCorrection(const Eigen::Vector3d& rcv_ECEF, const Eigen::Vector3d& sat_ECEF); -} /* namespace GnssUtils */ - -#endif /* INCLUDE_GNSS_UTILS_RANGE_H_ */ +} /* namespace GnssUtils */ \ No newline at end of file diff --git a/include/gnss_utils/receiver_raw_base.h b/include/gnss_utils/receiver_raw_base.h index 90ecfc4..206c6e0 100644 --- a/include/gnss_utils/receiver_raw_base.h +++ b/include/gnss_utils/receiver_raw_base.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_RECEIVER_RAW_BASE_H_ -#define INCLUDE_GNSS_UTILS_RECEIVER_RAW_BASE_H_ + +#pragma once #include "gnss_utils/observations.h" #include "gnss_utils/navigation.h" @@ -97,5 +96,4 @@ inline RawDataType ReceiverRawAbstract::getRawDataType() const return raw_data_type_; } -} // namespace GnssUtils -#endif +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/receivers/novatel_raw.h b/include/gnss_utils/receivers/novatel_raw.h index 845c51c..f53b3b0 100644 --- a/include/gnss_utils/receivers/novatel_raw.h +++ b/include/gnss_utils/receivers/novatel_raw.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_NOVATEL_RAW_H_ -#define INCLUDE_GNSS_UTILS_NOVATEL_RAW_H_ + +#pragma once #include "gnss_utils/receiver_raw_base.h" @@ -34,6 +33,4 @@ public: RawDataType addDataStream(const std::vector<uint8_t>& data_stream) override; }; -} // namespace GnssUtils - -#endif +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/receivers/ublox_raw.h b/include/gnss_utils/receivers/ublox_raw.h index c560e1d..a1fb783 100644 --- a/include/gnss_utils/receivers/ublox_raw.h +++ b/include/gnss_utils/receivers/ublox_raw.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_UBLOX_RAW_H_ -#define INCLUDE_GNSS_UTILS_UBLOX_RAW_H_ + +#pragma once #include "gnss_utils/receiver_raw_base.h" @@ -38,6 +37,4 @@ private: }; -} // namespace GnssUtils - -#endif // INCLUDE_GNSS_UTILS_UBLOX_RAW_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/snapshot.h b/include/gnss_utils/snapshot.h index 009a43d..1f86917 100644 --- a/include/gnss_utils/snapshot.h +++ b/include/gnss_utils/snapshot.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_SNAPSHOT_H_ -#define INCLUDE_GNSS_UTILS_SNAPSHOT_H_ + +#pragma once #include <map> #include <set> @@ -197,5 +196,4 @@ inline bool Snapshot::rangesComputed() const return !ranges_.empty(); } -} // namespace GnssUtils -#endif // INCLUDE_GNSS_UTILS_SNAPSHOT_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/tdcp.h b/include/gnss_utils/tdcp.h index efbf400..113dc20 100644 --- a/include/gnss_utils/tdcp.h +++ b/include/gnss_utils/tdcp.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_TDCP_H_ -#define INCLUDE_GNSS_UTILS_TDCP_H_ + +#pragma once #define GNSS_UTILS_TDCP_DEBUG 0 @@ -85,6 +84,4 @@ TdcpOutput Tdcp(const Eigen::Vector3d& x_r, std::set<int>& raim_discarded_rows, const TdcpOptions& tdcp_params); -} // namespace GnssUtils - -#endif /* INCLUDE_GNSS_UTILS_Tdcp_H_ */ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/utils/chisquare_ci.h b/include/gnss_utils/utils/chisquare_ci.h index 40e8eed..89d27f9 100644 --- a/include/gnss_utils/utils/chisquare_ci.h +++ b/include/gnss_utils/utils/chisquare_ci.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,17 +18,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-------- -/* - * chisquare_ci.h - * - * Created on: Jul 28, 2021 - * Author: joanvallve - */ -#ifndef INCLUDE_GNSS_UTILS_UTILS_CHISQUARE_CI_H_ -#define INCLUDE_GNSS_UTILS_UTILS_CHISQUARE_CI_H_ +#pragma once #include "chisquare_ci_maps.h" @@ -74,6 +66,4 @@ inline double ci2chisq(double ci, int dof) return lower->second + (ci - lower->first) / (upper->first - lower->first) * (upper->second - lower->second); }; -} // namespace GnssUtils - -#endif /* INCLUDE_GNSS_UTILS_UTILS_CHISQUARE_CI_H_ */ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/utils/chisquare_ci_maps.h b/include/gnss_utils/utils/chisquare_ci_maps.h index ef9fcd3..68982e1 100644 --- a/include/gnss_utils/utils/chisquare_ci_maps.h +++ b/include/gnss_utils/utils/chisquare_ci_maps.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_UTILS_CHISQUARE_CI_MAPS_H_ -#define INCLUDE_GNSS_UTILS_UTILS_CHISQUARE_CI_MAPS_H_ + +#pragma once #include <map> @@ -1413,6 +1412,4 @@ static std::map<int, std::map<double, double>> chisq_2_CI = { }}, }; -}// namespace GnssUtils - -#endif /* INCLUDE_GNSS_UTILS_UTILS_CHISQUARE_CI_MAPS_H_ */ +}// namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/utils/rcv_position.h b/include/gnss_utils/utils/rcv_position.h index 15b2264..0d1bab8 100644 --- a/include/gnss_utils/utils/rcv_position.h +++ b/include/gnss_utils/utils/rcv_position.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,17 +18,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-------- -/* - * transfromation.h - * - * Created on: April 3, 2020 - * Author: Joan Vallvé, Pep MartÃ-Saumell - */ -#ifndef INCLUDE_GNSS_UTILS_UTILS_RCV_POSITION_H_ -#define INCLUDE_GNSS_UTILS_UTILS_RCV_POSITION_H_ +#pragma once #include <Eigen/Dense> #include <Eigen/Geometry> @@ -65,5 +57,4 @@ int estposOwn(const obsd_t* obs, int* vsat, double* resp, char* msg); -} // namespace GnssUtils -#endif // INCLUDE_GNSS_UTILS_UTILS_RCV_POSITION_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/utils/satellite.h b/include/gnss_utils/utils/satellite.h index f0f2226..ad11d13 100644 --- a/include/gnss_utils/utils/satellite.h +++ b/include/gnss_utils/utils/satellite.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,17 +18,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-------- -/* - * sat_position.h - * - * Created on: April 3, 2020 - * Author: Joan Vallvé, Pep MartÃ-Saumell - */ -#ifndef INCLUDE_GNSS_UTILS_UTILS_SAT_POSITION_H_ -#define INCLUDE_GNSS_UTILS_UTILS_SAT_POSITION_H_ +#pragma once #include <Eigen/Dense> #include <Eigen/Geometry> @@ -62,5 +54,4 @@ namespace GnssUtils int svh; }; -} // namespace GnssUtils -#endif // INCLUDE_GNSS_UTILS_UTILS_SAT_POSITION_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/utils/transformations.h b/include/gnss_utils/utils/transformations.h index 1e066ca..eefad6e 100644 --- a/include/gnss_utils/utils/transformations.h +++ b/include/gnss_utils/utils/transformations.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,17 +18,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-------- -/* - * transfromation.h - * - * Created on: April 3, 2020 - * Author: Joan Vallvé, Pep MartÃ-Saumell - */ -#ifndef INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_ -#define INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_ +#pragma once #include <Eigen/Dense> #include <Eigen/Geometry> @@ -48,5 +40,4 @@ void computeEnuEcefFromLatLonAlt(const Eigen::Vector3d& _ENU_latlonalt, Eigen::Matrix3d& R_ENU_ECEF, Eigen::Vector3d& t_ENU_ECEF); -} // namespace GnssUtils -#endif // INCLUDE_GNSS_UTILS_UTILS_TRANSFORMATIONS_H_ +} // namespace GnssUtils \ No newline at end of file diff --git a/include/gnss_utils/utils/utils.h b/include/gnss_utils/utils/utils.h index 7f3b527..237da9b 100644 --- a/include/gnss_utils/utils/utils.h +++ b/include/gnss_utils/utils/utils.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,10 +18,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 INCLUDE_GNSS_UTILS_UTILS_UTILS_H_ -#define INCLUDE_GNSS_UTILS_UTILS_UTILS_H_ + +#pragma once #include <vector> #include <iostream> @@ -234,5 +233,3 @@ bool operator!=(const erp_t& erp1, const erp_t& erp2); bool operator==(const nav_t& nav1, const nav_t& nav2); bool operator!=(const nav_t& nav1, const nav_t& nav2); - -#endif // INCLUDE_GNSS_UTILS_UTILS_UTILS_H_ diff --git a/internal/config.h.in b/internal/config.h.in index 90ad35c..2ed540a 100644 --- a/internal/config.h.in +++ b/internal/config.h.in @@ -1,10 +1,7 @@ -#ifndef GNSS_UTILS_INTERNAL_CONFIG_H_ -#define GNSS_UTILS_INTERNAL_CONFIG_H_ +#pragma once #cmakedefine _GNSS_UTILS_DEBUG #cmakedefine _GNSS_UTILS_TRACE -#define _GNSS_UTILS_ROOT_DIR "${_GNSS_UTILS_ROOT_DIR}" - -#endif /* GNSS_UTILS_INTERNAL_CONFIG_H_ */ +#define _GNSS_UTILS_ROOT_DIR "${_GNSS_UTILS_ROOT_DIR}" \ No newline at end of file diff --git a/scripts/license_header_2025.txt b/scripts/license_header_2025.txt index ccc7d95..8fa4aae 100644 --- a/scripts/license_header_2025.txt +++ b/scripts/license_header_2025.txt @@ -1,5 +1,8 @@ -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils diff --git a/scripts/license_manager.sh b/scripts/license_manager.sh index 74f790a..7dceb1c 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 GnssUtils" 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/examples/gnss_utils_test.cpp b/src/examples/gnss_utils_test.cpp index fbd9b84..7d0096d 100644 --- a/src/examples/gnss_utils_test.cpp +++ b/src/examples/gnss_utils_test.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/observations.h" #include "gnss_utils/navigation.h" #include "gnss_utils/utils/transformations.h" diff --git a/src/navigation.cpp b/src/navigation.cpp index 855eed9..5709d6e 100644 --- a/src/navigation.cpp +++ b/src/navigation.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/navigation.h" using namespace GnssUtils; diff --git a/src/observations.cpp b/src/observations.cpp index c3ea2c8..41790f2 100644 --- a/src/observations.cpp +++ b/src/observations.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/observations.h" #include "gnss_utils/navigation.h" #include "gnss_utils/utils/satellite.h" diff --git a/src/range.cpp b/src/range.cpp index 1f5efe5..f2bc295 100644 --- a/src/range.cpp +++ b/src/range.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,14 +18,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-------- -/* - * pseudo_range.cpp - * - * Created on: May 28, 2020 - * Author: joanvallve - */ #include "gnss_utils/range.h" diff --git a/src/receiver_raw_base.cpp b/src/receiver_raw_base.cpp index fe78643..11e39cc 100644 --- a/src/receiver_raw_base.cpp +++ b/src/receiver_raw_base.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/receiver_raw_base.h" namespace GnssUtils diff --git a/src/receivers/novatel_raw.cpp b/src/receivers/novatel_raw.cpp index ea136c4..e2ccde9 100644 --- a/src/receivers/novatel_raw.cpp +++ b/src/receivers/novatel_raw.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/receivers/novatel_raw.h" using namespace GnssUtils; diff --git a/src/receivers/ublox_raw.cpp b/src/receivers/ublox_raw.cpp index dc055d7..5a9fead 100644 --- a/src/receivers/ublox_raw.cpp +++ b/src/receivers/ublox_raw.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/receivers/ublox_raw.h" using namespace GnssUtils; diff --git a/src/snapshot.cpp b/src/snapshot.cpp index 57950a3..a6d9225 100644 --- a/src/snapshot.cpp +++ b/src/snapshot.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/snapshot.h" #include "gnss_utils/utils/satellite.h" #include "gnss_utils/utils/transformations.h" diff --git a/src/tdcp.cpp b/src/tdcp.cpp index 99d9272..36ca791 100644 --- a/src/tdcp.cpp +++ b/src/tdcp.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include <iomanip> #include "gnss_utils/tdcp.h" #include "gnss_utils/utils/rcv_position.h" diff --git a/src/utils/rcv_position.cpp b/src/utils/rcv_position.cpp index 4478d59..9d5ef44 100644 --- a/src/utils/rcv_position.cpp +++ b/src/utils/rcv_position.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,14 +18,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-------- -/* - * transfromation.h - * - * Created on: April 3, 2020 - * Author: Joan Vallvé, Pep MartÃ-Saumell - */ #include "gnss_utils/utils/rcv_position.h" diff --git a/src/utils/satellite.cpp b/src/utils/satellite.cpp index 6fe97d2..5eeb27e 100644 --- a/src/utils/satellite.cpp +++ b/src/utils/satellite.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,14 +18,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-------- -/* - * sat_position.cpp - * - * Created on: April 3, 2020 - * Author: Joan Vallvé, Pep MartÃ-Saumell - */ #include "gnss_utils/utils/satellite.h" diff --git a/src/utils/transformations.cpp b/src/utils/transformations.cpp index a1962ce..a9889d4 100644 --- a/src/utils/transformations.cpp +++ b/src/utils/transformations.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/utils/transformations.h" using namespace GnssUtils; diff --git a/src/utils/utils.cpp b/src/utils/utils.cpp index bd5111c..4cc67a7 100644 --- a/src/utils/utils.cpp +++ b/src/utils/utils.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gnss_utils/utils/utils.h" namespace GnssUtils diff --git a/test/gtest/utils_gtest.h b/test/gtest/utils_gtest.h index c6e644b..9e59f47 100644 --- a/test/gtest/utils_gtest.h +++ b/test/gtest/utils_gtest.h @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,18 +18,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> @@ -162,6 +153,4 @@ TEST(Test, Foo) }, \ C_expect, C_actual); -} // namespace testing - -#endif /* GNSSUTILS_UTILS_GTEST_H */ +} // namespace testing \ No newline at end of file diff --git a/test/gtest_chisquare.cpp b/test/gtest_chisquare.cpp index cf44c4e..bf93fe9 100644 --- a/test/gtest_chisquare.cpp +++ b/test/gtest_chisquare.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gtest/utils_gtest.h" #include "gnss_utils/utils/chisquare_ci.h" diff --git a/test/gtest_example.cpp b/test/gtest_example.cpp index b30c4ee..d27087c 100644 --- a/test/gtest_example.cpp +++ b/test/gtest_example.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gtest/utils_gtest.h" TEST(TestTest, DummyTestExample) diff --git a/test/gtest_navigation.cpp b/test/gtest_navigation.cpp index 8c79181..4a9073b 100644 --- a/test/gtest_navigation.cpp +++ b/test/gtest_navigation.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gtest/utils_gtest.h" #include "gnss_utils/utils/utils.h" #include "gnss_utils/navigation.h" diff --git a/test/gtest_observations.cpp b/test/gtest_observations.cpp index a2a9b82..e1c41e9 100644 --- a/test/gtest_observations.cpp +++ b/test/gtest_observations.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gtest/utils_gtest.h" #include "gnss_utils/observations.h" diff --git a/test/gtest_tdcp.cpp b/test/gtest_tdcp.cpp index 56b9525..6756e5c 100644 --- a/test/gtest_tdcp.cpp +++ b/test/gtest_tdcp.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gtest/utils_gtest.h" #include "gnss_utils/tdcp.h" #include "gnss_utils/snapshot.h" diff --git a/test/gtest_transformations.cpp b/test/gtest_transformations.cpp index 753e925..9e6b043 100644 --- a/test/gtest_transformations.cpp +++ b/test/gtest_transformations.cpp @@ -1,7 +1,8 @@ -//--------LICENSE_START-------- -// -// Copyright (C) 2020,2021,2022,2023,2024,2025 Institut de Robòtica i Informà tica Industrial, CSIC-UPC. -// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu) +// GnssUtils - Copyright (C) 2020-2025 +// Institut de Robòtica i Informà tica Industrial, CSIC-UPC. +// Authors: Joan Vallvé Navarro (jvallve@iri.upc.edu), +// Josep Martà Saumell (jmarti@iri.upc.edu), +// Javier Laplaza (jlaplaza@iri.upc.edu) // All rights reserved. // // This file is part of gnss_utils @@ -17,8 +18,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-------- + + #include "gtest/utils_gtest.h" #include "gnss_utils/utils/satellite.h" #include "gnss_utils/utils/transformations.h" -- GitLab