diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 166c4ec91d546d4a0a8e4faab84a5b7e4c536529..e0419467dd27fbf4d8334e13b0b437dca12f1f90 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 a7c2dcc9aca221f7a6654cd1087641ab60932688..332e1758cc5c692511aca65e10837a369f3fc0e9 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 af567d1b95c747c08155f8c5738460dbab40de5b..9884ff129125e490c5783193dcc9a189f52b0412 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 96280ebb3afe8506cc8a7dc4234b63ddc2314ecf..294f87a61444df5bb2b041d4ace71b1e3e90f248 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 bd5016cf12ac8f1f054ca42189937bab60cc9d48..c3f8ec679128b28bfac1e1342cbe41a2d1845d30 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 90ecfc451673b3c8473153f0bede9ed28d60cc1a..206c6e05adcb8df2b7560c3fd8862312385afd8e 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 845c51cfcb29abf62089e1159d5c31a9ac0b6449..f53b3b0e2f3afe73306d9dd0be40a042e14c2e1b 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 c560e1d75a5093135ef4ae8f771d21b9a59f3884..a1fb78376967230b84780e01ca2da8dcbfa4bcaf 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 009a43d17d4d9c3882502d13d704036e2b3dec62..1f869175aed8be7c47296579dc4209cc0e474754 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 efbf4000641d252a878b1e2276f38c1d15026028..113dc209c813aed6e8a30c70e1172ffcc814b71f 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 40e8eed1137c8de9fe6d5c249d17e88588cdb382..89d27f91831caef1ed7e8e6e259d6f18fe2dde94 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 ef9fcd330bc265e49256f3fde0a06630f0719415..68982e1ee60ffb9b44ca66424018a6721e8840ee 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 15b2264e12cdae447835d903f814d65c144e85e1..0d1bab83fd50eb2e216dc7d8212bb597f0101a1f 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 f0f2226d6192cdf038a4700dfecccfe5755f3866..ad11d1317ab5e023d7e870ef1fe28eb321ecd570 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 1e066ca7b21524b7c2db4f566d63c596860f6acf..eefad6e3624d634a4ee72b1e93039208d71d2ca4 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 7f3b5272bf8fed06aae2438a5a4e4ec3923b5f16..237da9bdca9be7896cb6af78e70a54ef6303b092 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 90ad35cc6c35569f52a370d2c6624e0bed11c030..2ed540afdb630ac5b7c4183cd0131752dc69613a 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 ccc7d955829e16ff884d08ca1274b68bbf300336..8fa4aae06cf96a209d315bee1cbe8ad7149adf3e 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 74f790a95133bb09f07b016ed55c3a7b67e2a9bc..7dceb1ccfe0e30ea6939a4bc0cf163bc78acc5d7 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 fbd9b84c7d60ef0277778081a4260209c363a561..7d0096d95adddaa9f6d3457c68fba6802aa341d9 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 855eed9afd3e18edecff2547ff9eaf308dda7ab0..5709d6e76fdafe3212876b1c19ae2c74fef6c377 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 c3ea2c88a707b083d27719460299d040fffaa44b..41790f2f8f1b3b0cd687458d445d81128f56a630 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 1f5efe5851e33ee75b9395e3584ea07e6196967c..f2bc2953d990ef56470ee6e2bb20d426a5546037 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 fe78643e9ae42ea053e6b22a2ebd3bd163ac3652..11e39cc44a8bf4f394124ec41af6fa9de33d1a85 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 ea136c4c08e20964d5798705d7962ccd7331bef9..e2ccde968c9b5c871d0e9c39c21d91a6ae863a8a 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 dc055d77c25f16a1572762ad4a9c5d9fed2e2f33..5a9fead371d4c66540efd0a9c6cf294834eda10c 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 57950a33ca780372d9d8a06fdf2441dfd38ffd11..a6d9225f2a71e61929aa74ad912338ea4009d4fa 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 99d927253307ee2aa17abed0307dfbc9c0da85f9..36ca791ace18bc4487580423d054e7ce52a99bf6 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 4478d59dd0f84c2a1452265c57f1edbe2a538998..9d5ef44e460436186ed54a6841c8205d08db1708 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 6fe97d28ea187162cf6f7169054c6b89e2ba1aae..5eeb27e073fc00a8a298524f479fa34b275e9cc7 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 a1962cee9d3557e13219f6dd298a0db8de28b999..a9889d4cea92b3d9f970471bc1c6ae1bc9275af7 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 bd5111c6b95d2b3ddb3d0f0337bb1785efc9c320..4cc67a7df6f473aa8b955d3ded5a81817826a7e4 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 c6e644b7f9afe4d120d1a20736dc93519bfb0f3e..9e59f474b24521ff3acc0f053a0652f247711e94 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 cf44c4e482c0e54ee76d7bcfc24e070eb68db2f3..bf93fe94eb887b419055e82dfdd3498db59fab69 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 b30c4ee8d23e04229437f72f5d1217db93218dcc..d27087cb97e17deca1fb6e9845d18a4608944c73 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 8c79181139da8e8c5dfe5b85d806907fc81d3de1..4a9073b55d79f9c781277b9c7076283e6b6318d8 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 a2a9b82e2ecf6e9d2bb0a90bda5c961a25747b5c..e1c41e92baba9cd5f52906ac268dd05bb0af375f 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 56b95255a2c4050b3b7a8fce1c0356ef5c17833f..6756e5cd06fcc76bf624ddca2b45911514bfb536 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 753e925aa699564ff1ed4a798a05965c925aafeb..9e6b0435c4fa4e6ca00641c2a0fde8a384de1a55 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"