constellations.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: BSD-3-Clause
2 // SPDX-FileCopyrightText: Czech Technical University in Prague
3 
4 #pragma once
5 
6 #include <string>
7 #include <utility>
8 
9 #include <gnsstk/SatID.hpp>
10 #include <gnsstk/SatelliteSystem.hpp>
11 
13 #include <gnss_info_msgs/SatelliteInfo.h>
14 
15 namespace gnsstk_ros
16 {
17 
23 cras::optional<std::string> getRosConstellationFromPRN(const std::string& prn);
24 
30 cras::optional<std::string> getRosConstellationFromSVN(const std::string& svn);
31 
37 cras::optional<std::pair<int32_t, std::string>> prnStringToInt(const std::string& prn);
38 
45 cras::optional<std::string> prnIntToString(int32_t prn, const std::string& constellation);
46 
53 cras::optional<gnsstk::SatelliteSystem> rosConstellationToGnsstkSatelliteSystem(const std::string& constellation);
54 
60 cras::optional<std::string> gnsstkSatelliteSystemRosConstellation(const gnsstk::SatelliteSystem& constellation);
61 
67 cras::optional<gnsstk::SatID> satelliteInfoToSatID(const gnss_info_msgs::SatelliteInfo& info);
68 
69 }
optional.hpp
gnsstk_ros
Definition: constellations.h:15
gnsstk_ros::satelliteInfoToSatID
cras::optional< gnsstk::SatID > satelliteInfoToSatID(const gnss_info_msgs::SatelliteInfo &info)
Convert the given satellite info to non-wildcard gnsstk SatID.
Definition: constellations.cpp:134
gnsstk::SatelliteSystem
SatelliteSystem
gnsstk_ros::prnStringToInt
cras::optional< std::pair< int32_t, std::string > > prnStringToInt(const std::string &prn)
Convert the given PRN string like E03 to integer like 3 and constellation name.
Definition: constellations.cpp:48
gnsstk_ros::gnsstkSatelliteSystemRosConstellation
cras::optional< std::string > gnsstkSatelliteSystemRosConstellation(const gnsstk::SatelliteSystem &constellation)
Convert the gnsstk constellation enum to gnss_info_msgs constellation string.
Definition: constellations.cpp:113
gnsstk_ros::getRosConstellationFromPRN
cras::optional< std::string > getRosConstellationFromPRN(const std::string &prn)
Get constellation name from the given PRN string like E03.
Definition: constellations.cpp:18
gnsstk_ros::prnIntToString
cras::optional< std::string > prnIntToString(int32_t prn, const std::string &constellation)
Convert the given numeric PRN and constellation to string PRN like E03.
Definition: constellations.cpp:72
gnsstk_ros::rosConstellationToGnsstkSatelliteSystem
cras::optional< gnsstk::SatelliteSystem > rosConstellationToGnsstkSatelliteSystem(const std::string &constellation)
Convert the gnss_info_msgs constellation string to gnsstk constellation enum.
Definition: constellations.cpp:94
gnsstk_ros::getRosConstellationFromSVN
cras::optional< std::string > getRosConstellationFromSVN(const std::string &svn)
Get constellation name from the given SVN string like E203.
Definition: constellations.cpp:42


gnsstk_ros
Author(s): Martin Pecka
autogenerated on Fri Nov 24 2023 03:50:23