0.4.1
Loading...
Searching...
No Matches
NAV::AntexReader Class Reference

ANTEX file reader. More...

Data Structures

struct  Antenna
 Antenna information. More...
 
struct  AntennaFreqInfo
 Antenna frequency dependant information. More...
 

Public Member Functions

const std::set< std::string > & antennas () const
 Antennas read from the ANTEX files.
 
std::optional< Eigen::Vector3d > getAntennaPhaseCenterOffsetToARP (const std::string &antennaType, Frequency_ freq, const InsTime &insTime, const std::string &nameId) const
 Get the Antenna Phase Center Offset To ARP if it is found in the ANTEX file.
 
template<typename T>
std::optional< T > getAntennaPhaseCenterVariation (const std::string &antennaType, Frequency_ freq, const InsTime &insTime, const T &elevation, std::optional< double > azimuth, const std::string &nameId) const
 Gets the phase center variation for given elevation and azimuth.
 
void initialize ()
 Initialize from ANTEX file.
 
void reset ()
 Reset the temporary variables.
 

Static Public Member Functions

static AntexReaderGet ()
 Get the static Instance of the reader.
 

Private Member Functions

 AntexReader ()=default
 Constructor.
 
std::optional< std::reference_wrapper< const AntennaFreqInfo > > getAntennaFrequencyInfo (const Antenna::AntennaInfo &antInfo, const std::string &antennaType, Frequency_ freq, const std::string &nameId) const
 Get the antenna frequency info object.
 
std::optional< std::reference_wrapper< const AntennaFreqInfo > > getAntennaFrequencyInfo (const std::string &antennaType, Frequency_ freq, const InsTime &insTime, const std::string &nameId) const
 Get the antenna frequency info object.
 
std::optional< std::reference_wrapper< const Antenna::AntennaInfo > > getAntennaInfo (const std::string &antennaType, const InsTime &insTime, const std::string &nameId) const
 Get the antenna info object.
 

Private Attributes

std::set< std::string > _antennaNames
 Ordered names of all antennas.
 
std::unordered_map< std::string, Antenna_antennas
 Antennas read from the ANTEX files.
 
std::unordered_set< std::string > _notFoundAnt
 List of Antennas not found to emit a warning.
 
std::unordered_set< std::pair< std::string, Frequency_ > > _notFoundFreq
 List of Frequencies not found to emit a warning.
 

Detailed Description

ANTEX file reader.

Definition at line 45 of file AntexReader.hpp.

Constructor & Destructor Documentation

◆ AntexReader()

NAV::AntexReader::AntexReader ( )
privatedefault

Constructor.

Member Function Documentation

◆ antennas()

const std::set< std::string > & NAV::AntexReader::antennas ( ) const
inline

Antennas read from the ANTEX files.

Definition at line 480 of file AntexReader.hpp.

◆ Get()

static AntexReader & NAV::AntexReader::Get ( )
inlinestatic

Get the static Instance of the reader.

Definition at line 98 of file AntexReader.hpp.

◆ getAntennaFrequencyInfo() [1/2]

std::optional< std::reference_wrapper< const AntennaFreqInfo > > NAV::AntexReader::getAntennaFrequencyInfo ( const Antenna::AntennaInfo & antInfo,
const std::string & antennaType,
Frequency_ freq,
const std::string & nameId ) const
inlineprivate

Get the antenna frequency info object.

Parameters
[in]antInfoAntenna Info object
[in]antennaTypeAntenna Type
[in]freqFrequency
[in]nameIdNameId of the calling node for Log output

Definition at line 565 of file AntexReader.hpp.

◆ getAntennaFrequencyInfo() [2/2]

std::optional< std::reference_wrapper< const AntennaFreqInfo > > NAV::AntexReader::getAntennaFrequencyInfo ( const std::string & antennaType,
Frequency_ freq,
const InsTime & insTime,
const std::string & nameId ) const
inlineprivate

Get the antenna frequency info object.

Parameters
[in]antennaTypeAntenna Type
[in]freqFrequency
[in]insTimeTime
[in]nameIdNameId of the calling node for Log output

Definition at line 548 of file AntexReader.hpp.

◆ getAntennaInfo()

std::optional< std::reference_wrapper< const Antenna::AntennaInfo > > NAV::AntexReader::getAntennaInfo ( const std::string & antennaType,
const InsTime & insTime,
const std::string & nameId ) const
inlineprivate

Get the antenna info object.

Parameters
[in]antennaTypeAntenna Type
[in]insTimeTime
[in]nameIdNameId of the calling node for Log output

Definition at line 505 of file AntexReader.hpp.

◆ getAntennaPhaseCenterOffsetToARP()

std::optional< Eigen::Vector3d > NAV::AntexReader::getAntennaPhaseCenterOffsetToARP ( const std::string & antennaType,
Frequency_ freq,
const InsTime & insTime,
const std::string & nameId ) const
inline

Get the Antenna Phase Center Offset To ARP if it is found in the ANTEX file.

Parameters
[in]antennaTypeAntenna Type
[in]freqFrequency
[in]insTimeTime
[in]nameIdNameId of the calling node for Log output
Returns
Phase center offset in north, east, up components in [m]

Definition at line 375 of file AntexReader.hpp.

◆ getAntennaPhaseCenterVariation()

template<typename T>
std::optional< T > NAV::AntexReader::getAntennaPhaseCenterVariation ( const std::string & antennaType,
Frequency_ freq,
const InsTime & insTime,
const T & elevation,
std::optional< double > azimuth,
const std::string & nameId ) const
inline

Gets the phase center variation for given elevation and azimuth.

Parameters
[in]antennaTypeAntenna Type
[in]freqFrequency
[in]insTimeTime
[in]elevationElevation angle in [rad]
[in]azimuthAzimuth in [rad] or nullopt to use the azimuth independent (NOAZI)
[in]nameIdNameId of the calling node for Log output
Returns
The interpolated phase center variation in [m]

Definition at line 395 of file AntexReader.hpp.

◆ initialize()

void NAV::AntexReader::initialize ( )
inline

Initialize from ANTEX file.

Definition at line 105 of file AntexReader.hpp.

◆ reset()

void NAV::AntexReader::reset ( )
inline

Reset the temporary variables.

Definition at line 363 of file AntexReader.hpp.

Field Documentation

◆ _antennaNames

std::set<std::string> NAV::AntexReader::_antennaNames
private

Ordered names of all antennas.

Definition at line 493 of file AntexReader.hpp.

◆ _antennas

std::unordered_map<std::string, Antenna> NAV::AntexReader::_antennas
private

Antennas read from the ANTEX files.

Definition at line 490 of file AntexReader.hpp.

◆ _notFoundAnt

std::unordered_set<std::string> NAV::AntexReader::_notFoundAnt
mutableprivate

List of Antennas not found to emit a warning.

Definition at line 496 of file AntexReader.hpp.

◆ _notFoundFreq

std::unordered_set<std::pair<std::string, Frequency_> > NAV::AntexReader::_notFoundFreq
mutableprivate

List of Frequencies not found to emit a warning.

Definition at line 499 of file AntexReader.hpp.


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