Public Member Functions | Private Attributes | List of all members
gnss_info::EthzSatdbDataSource Class Reference

GNSSTk NavLibrary data source downloading TLE data from ETHZ Satellite Database. More...

#include <ethz_satdb_datasource.h>

Inheritance diagram for gnss_info::EthzSatdbDataSource:
Inheritance graph
[legend]

Public Member Functions

 EthzSatdbDataSource (const std::unordered_map< uint32_t, gnss_info_msgs::SatelliteInfo > &satelliteInfo)
 
std::unordered_set< std::string > getConstellations () const override
 Get the constellations handled by this data source. More...
 
std::string getName () const override
 Get human-readable name of the data source. More...
 
std::pair< ros::Time, ros::TimegetTimeRange () const override
 Get the time range in which this datasource can provide information. More...
 
bool isApproximate () const override
 Return whether this datasource works with approximate orbit data. More...
 
bool isPrecise () const override
 Return whether this datasource works with precise orbit data. More...
 
bool load (const ros::Time &startTime, const ros::Time &endTime, const DataSourceLoadCb &cb) override
 Load data for the given time interval. More...
 
bool load (const ros::Time &time, const DataSourceLoadCb &cb) override
 Load data for the given time instant. More...
 
 ~EthzSatdbDataSource () override
 
- Public Member Functions inherited from gnss_info::NavLibraryDataSource
 NavLibraryDataSource ()=default
 Construct the data source. More...
 
virtual ~NavLibraryDataSource ()=default
 

Private Attributes

std::unique_ptr< EthzSatdbDataSourcePrivatedata
 Private implementation data (PIMPL). More...
 

Additional Inherited Members

- Public Types inherited from gnss_info::NavLibraryDataSource
typedef std::function< bool(const std::string &file)> DataSourceLoadCb
 Callback to be called when a new source file is introduced. More...
 

Detailed Description

GNSSTk NavLibrary data source downloading TLE data from ETHZ Satellite Database.

Definition at line 25 of file ethz_satdb_datasource.h.

Constructor & Destructor Documentation

◆ EthzSatdbDataSource()

gnss_info::EthzSatdbDataSource::EthzSatdbDataSource ( const std::unordered_map< uint32_t, gnss_info_msgs::SatelliteInfo > &  satelliteInfo)
explicit

Definition at line 356 of file ethz_satdb_datasource.cpp.

◆ ~EthzSatdbDataSource()

gnss_info::EthzSatdbDataSource::~EthzSatdbDataSource ( )
overridedefault

Member Function Documentation

◆ getConstellations()

std::unordered_set< std::string > gnss_info::EthzSatdbDataSource::getConstellations ( ) const
overridevirtual

Get the constellations handled by this data source.

Returns
The constellations.

Implements gnss_info::NavLibraryDataSource.

Definition at line 389 of file ethz_satdb_datasource.cpp.

◆ getName()

std::string gnss_info::EthzSatdbDataSource::getName ( ) const
overridevirtual

Get human-readable name of the data source.

Returns
The name.

Implements gnss_info::NavLibraryDataSource.

Definition at line 490 of file ethz_satdb_datasource.cpp.

◆ getTimeRange()

std::pair< ros::Time, ros::Time > gnss_info::EthzSatdbDataSource::getTimeRange ( ) const
overridevirtual

Get the time range in which this datasource can provide information.

Returns
The time range (first, latest).

Implements gnss_info::NavLibraryDataSource.

Definition at line 384 of file ethz_satdb_datasource.cpp.

◆ isApproximate()

bool gnss_info::EthzSatdbDataSource::isApproximate ( ) const
overridevirtual

Return whether this datasource works with approximate orbit data.

Returns
Whether this datasource works with approximate orbit data.

Implements gnss_info::NavLibraryDataSource.

Definition at line 485 of file ethz_satdb_datasource.cpp.

◆ isPrecise()

bool gnss_info::EthzSatdbDataSource::isPrecise ( ) const
overridevirtual

Return whether this datasource works with precise orbit data.

Returns
Whether this datasource works with precise orbit data.

Implements gnss_info::NavLibraryDataSource.

Definition at line 480 of file ethz_satdb_datasource.cpp.

◆ load() [1/2]

bool gnss_info::EthzSatdbDataSource::load ( const ros::Time startTime,
const ros::Time endTime,
const DataSourceLoadCb cb 
)
overridevirtual

Load data for the given time interval.

Parameters
[in]startTimeThe time to start loading at.
[in]endTimeThe time to stop loading at.
[in]cbCallback to call for each found and downloaded data file.
Returns
Whether loading succeeded.

Implements gnss_info::NavLibraryDataSource.

Definition at line 399 of file ethz_satdb_datasource.cpp.

◆ load() [2/2]

bool gnss_info::EthzSatdbDataSource::load ( const ros::Time time,
const DataSourceLoadCb cb 
)
overridevirtual

Load data for the given time instant.

Parameters
[in]timeThe time to load at.
[in]cbCallback to call for each found and downloaded data file.
Returns
Whether loading succeeded.

Implements gnss_info::NavLibraryDataSource.

Definition at line 394 of file ethz_satdb_datasource.cpp.

Member Data Documentation

◆ data

std::unique_ptr<EthzSatdbDataSourcePrivate> gnss_info::EthzSatdbDataSource::data
private

Private implementation data (PIMPL).

Definition at line 42 of file ethz_satdb_datasource.h.


The documentation for this class was generated from the following files:


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