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

GNSS Observation message information. More...

Data Structures

struct  ObservationData
 Stores the satellites observations. More...
 
struct  ReceiverInfo
 Receiver Information, e.g. from RINEX header. More...
 
struct  SatelliteData
 Useful information of the satellites. More...
 

Public Types

enum  ObservationType : uint8_t {
  Pseudorange ,
  Carrier ,
  Doppler ,
  ObservationType_COUNT
}
 Observation types. More...
 

Public Member Functions

bool contains (const SatSigId &satSigId) const
 Checks if an element with the identifier exists.
 
std::vector< std::string > dynamicDataDescriptors () const override
 Returns a vector of data descriptors for the dynamic data.
 
std::vector< std::pair< std::string, double > > getDynamicData () const override
 Returns a vector of data descriptors and values for the dynamic data.
 
std::optional< double > getDynamicDataAt (const std::string &descriptor) const override
 Get the value for the descriptor.
 
const std::vector< SatelliteData > & getSatData () const
 Useful information of the satellites.
 
std::string getType () const override
 Returns the type of the data class.
 
ObservationDataoperator() (const SatSigId &satSigId)
 Return the element with the identifier or a newly constructed one if it did not exist.
 
std::optional< std::reference_wrapper< const ObservationData > > operator() (const SatSigId &satSigId) const
 Return the element with the identifier.
 
SatelliteDatasatData (const SatId &satId)
 Access or insert the satellite data.
 
std::optional< std::reference_wrapper< const SatelliteData > > satData (const SatId &satId) const
 Access the satellite data.
 
- Public Member Functions inherited from NAV::NodeData
void addEvent (const std::string &text)
 Adds the event to the list.
 
const std::vector< std::string > & events () const
 Returns a vector of string events associated with this data.
 
virtual std::optional< double > getValueAt (size_t) const
 Get the value at the index.
 
double getValueAtOrNaN (size_t idx) const
 Get the value at the index or NaN if not in the observation.
 
virtual void guiTooltip (bool detailView, bool firstOpen, const char *displayName, const char *id, int *rootWindow) const
 Shows a GUI tooltip to look into details of the observation.
 
virtual bool hasTooltip () const
 Return whether this data has a tooltip.
 
 NodeData ()=default
 Default constructor.
 
 NodeData (const NodeData &)=default
 Copy constructor.
 
 NodeData (NodeData &&)=default
 Move constructor.
 
NodeDataoperator= (const NodeData &)=default
 Copy assignment operator.
 
NodeDataoperator= (NodeData &&)=default
 Move assignment operator.
 
virtual bool setDynamicDataAt (const std::string &, double)
 Set the value for the descriptor.
 
virtual bool setValueAt (size_t, double)
 Set the value at the index.
 
virtual std::vector< std::string > staticDataDescriptors () const
 Returns a vector of data descriptors.
 
virtual size_t staticDescriptorCount () const
 Get the amount of descriptors.
 
virtual ~NodeData ()=default
 Destructor.
 

Static Public Member Functions

static std::vector< std::string > parentTypes ()
 Returns the parent types of the data class.
 
static std::string type ()
 Returns the type of the data class.
 
- Static Public Member Functions inherited from NAV::NodeData
static std::vector< std::string > GetStaticDataDescriptors ()
 Returns a vector of data descriptors.
 
static constexpr size_t GetStaticDescriptorCount ()
 Get the amount of descriptors.
 
static std::vector< std::string > parentTypes ()
 Returns the parent types of the data class.
 
static std::string type ()
 Returns the type of the data class.
 

Data Fields

std::vector< ObservationDatadata
 Satellite observations.
 
std::optional< std::reference_wrapper< ReceiverInfo > > receiverInfo
 Optional Receiver Information, e.g. from RINEX header.
 
- Data Fields inherited from NAV::NodeData
InsTime insTime
 Time at which the message was received.
 

Private Attributes

std::vector< SatelliteData_satData
 Useful information of the satellites.
 

Additional Inherited Members

- Protected Attributes inherited from NAV::NodeData
std::vector< std::string > _events
 List of events.
 

Detailed Description

GNSS Observation message information.

Definition at line 32 of file GnssObs.hpp.

Member Enumeration Documentation

◆ ObservationType

Observation types.

Enumerator
Pseudorange 

Pseudorange.

Carrier 

Carrier-Phase.

Doppler 

Doppler (Pseudorange rate)

ObservationType_COUNT 

Count.

Definition at line 36 of file GnssObs.hpp.

Member Function Documentation

◆ contains()

bool NAV::GnssObs::contains ( const SatSigId & satSigId) const
inlinenodiscard

Checks if an element with the identifier exists.

Parameters
[in]satSigIdSignal id
Returns
True if the element exists

Definition at line 205 of file GnssObs.hpp.

◆ dynamicDataDescriptors()

std::vector< std::string > NAV::GnssObs::dynamicDataDescriptors ( ) const
inlinenodiscardoverridevirtual

Returns a vector of data descriptors for the dynamic data.

Reimplemented from NAV::NodeData.

Definition at line 250 of file GnssObs.hpp.

◆ getDynamicData()

std::vector< std::pair< std::string, double > > NAV::GnssObs::getDynamicData ( ) const
inlinenodiscardoverridevirtual

Returns a vector of data descriptors and values for the dynamic data.

Reimplemented from NAV::NodeData.

Definition at line 310 of file GnssObs.hpp.

◆ getDynamicDataAt()

std::optional< double > NAV::GnssObs::getDynamicDataAt ( const std::string & descriptor) const
inlinenodiscardoverridevirtual

Get the value for the descriptor.

Returns
Value if in the observation

Reimplemented from NAV::NodeData.

Definition at line 273 of file GnssObs.hpp.

◆ getSatData()

const std::vector< SatelliteData > & NAV::GnssObs::getSatData ( ) const
inlinenodiscard

Useful information of the satellites.

Definition at line 247 of file GnssObs.hpp.

◆ getType()

std::string NAV::GnssObs::getType ( ) const
inlinenodiscardoverridevirtual

Returns the type of the data class.

Returns
The data type

Reimplemented from NAV::NodeData.

Definition at line 157 of file GnssObs.hpp.

◆ operator()() [1/2]

ObservationData & NAV::GnssObs::operator() ( const SatSigId & satSigId)
inline

Return the element with the identifier or a newly constructed one if it did not exist.

Parameters
[in]satSigIdSignal id
Returns
The element found in the observations or a newly constructed one

Definition at line 216 of file GnssObs.hpp.

◆ operator()() [2/2]

std::optional< std::reference_wrapper< const ObservationData > > NAV::GnssObs::operator() ( const SatSigId & satSigId) const
inlinenodiscard

Return the element with the identifier.

Parameters
[in]satSigIdSignal id
Returns
The element found in the observations

Definition at line 233 of file GnssObs.hpp.

◆ parentTypes()

static std::vector< std::string > NAV::GnssObs::parentTypes ( )
inlinestaticnodiscard

Returns the parent types of the data class.

Returns
The parent data types

Definition at line 161 of file GnssObs.hpp.

◆ satData() [1/2]

SatelliteData & NAV::GnssObs::satData ( const SatId & satId)
inline

Access or insert the satellite data.

Parameters
satIdSatellite identifier
Returns
The satellite data

Definition at line 172 of file GnssObs.hpp.

◆ satData() [2/2]

std::optional< std::reference_wrapper< const SatelliteData > > NAV::GnssObs::satData ( const SatId & satId) const
inlinenodiscard

Access the satellite data.

Parameters
satIdSatellite identifier
Returns
The satellite data if in the list

Definition at line 190 of file GnssObs.hpp.

◆ type()

static std::string NAV::GnssObs::type ( )
inlinestaticnodiscard

Returns the type of the data class.

Returns
The data type

Definition at line 150 of file GnssObs.hpp.

Field Documentation

◆ _satData

std::vector<SatelliteData> NAV::GnssObs::_satData
private

Useful information of the satellites.

Definition at line 351 of file GnssObs.hpp.

◆ data

std::vector<ObservationData> NAV::GnssObs::data

Satellite observations.

Definition at line 167 of file GnssObs.hpp.

◆ receiverInfo

std::optional<std::reference_wrapper<ReceiverInfo> > NAV::GnssObs::receiverInfo

Optional Receiver Information, e.g. from RINEX header.

Definition at line 347 of file GnssObs.hpp.


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