Classes | Functions
gnss_info Namespace Reference

Classes

struct  DayIndex
 Object that can be used as an index into a cache and assigns all times from the same day the same cache index. More...
 
class  EthzSatdbDataSource
 GNSSTk NavLibrary data source downloading TLE data from ETHZ Satellite Database. More...
 
struct  EthzSatdbDataSourcePrivate
 
struct  GNSSBlock
 
struct  GNSSSignal
 
struct  IgnoredBlock
 
class  IGSSatelliteMetadata
 Wrapper around IGS satellite catalog which contains information about all public GNSS satellites. More...
 
struct  IGSSatelliteMetadataPrivate
 PIMPL data holder. More...
 
class  IgsSinexBlock
 Normal gnsstk::Sinex::Block cannot handle comments after block start. This class adds the support. More...
 
class  IgsSinexData
 Customized Sinex Data reader that can read the almost-SINEX satellite metadata from IGS. More...
 
class  NavLibraryDataSource
 Generic interface for various data sources for gnsstk::NavLibrary. More...
 
class  NavLibraryOrbitalDataProvider
 GNSS satellite orbits provider based on gnsstk::NavLibrary with multi-format data source. More...
 
struct  NavLibraryOrbitalDataProviderPrivate
 
class  OrbitalDataManager
 Manager of multiple providers of satellite orbital data. More...
 
struct  OrbitalDataManagerPrivate
 
class  OrbitalDataProvider
 Generic interface for various providers of GNSS satellite orbital data. More...
 
struct  SatelliteFrequencyChannel
 
struct  SatelliteIdentifier
 
struct  SatellitePRN
 

Functions

cras::expected< std::stringstream, std::string > download (const std::string &url, const std::function< void(CURL *)> &curlOptions={})
 Download the given URL to a stringstream. More...
 
std::string getCacheDir ()
 Return path to a directory where cache files should be stored. Also make sure the directory exists. More...
 
bool isCacheFileValid (const std::string &file)
 Return whether the given cache file can be used. More...
 
bool isCacheFileValid (const std::string &file, const ros::WallDuration &validity)
 Return whether the given cache file can be used. More...
 
std::string longSinexTime (const gnsstk::Sinex::Time &t)
 
ros::Time sinexTimeToRosTime (const gnsstk::Sinex::Time &t)
 

Function Documentation

◆ download()

cras::expected< std::stringstream, std::string > gnss_info::download ( const std::string &  url,
const std::function< void(CURL *)> &  curlOptions = {} 
)

Download the given URL to a stringstream.

Parameters
[in]urlThe URL to download.
[in]curlOptionsFunction that provides extra CURL configuration before starting the download. URL, WRITEFUNCTION and WRITEDATA options cannot be changed. FOLLOWLOCATION is set to 1 but can be changed.
Returns
The stream if succeeded, or error message.

Definition at line 50 of file cache.cpp.

◆ getCacheDir()

std::string gnss_info::getCacheDir ( )

Return path to a directory where cache files should be stored. Also make sure the directory exists.

Returns
The directory path.

Definition at line 20 of file cache.cpp.

◆ isCacheFileValid() [1/2]

bool gnss_info::isCacheFileValid ( const std::string &  file)

Return whether the given cache file can be used.

Parameters
[in]filePath to the file.
Returns
Whether the file is valid.

Definition at line 76 of file cache.cpp.

◆ isCacheFileValid() [2/2]

bool gnss_info::isCacheFileValid ( const std::string &  file,
const ros::WallDuration validity 
)

Return whether the given cache file can be used.

Parameters
[in]filePath to the file.
[in]validityDuration for which the file is valid (from the time the file was last changed/created).
Returns
Whether the file is valid.

Definition at line 81 of file cache.cpp.

◆ longSinexTime()

std::string gnss_info::longSinexTime ( const gnsstk::Sinex::Time t)

Definition at line 37 of file igs_satellite_metadata.cpp.

◆ sinexTimeToRosTime()

ros::Time gnss_info::sinexTimeToRosTime ( const gnsstk::Sinex::Time t)

Definition at line 593 of file igs_satellite_metadata.cpp.



gnss_info
Author(s): Martin Pecka
autogenerated on Fri Nov 24 2023 03:50:35