Apollo 10.0
自动驾驶开放平台
apollo::localization::msf::EphKey结构体 参考

#include <localization_gnss_process.h>

apollo::localization::msf::EphKey 的协作图:

Public 成员函数

 EphKey (const apollo::drivers::gnss::GnssType type, const unsigned int prn, double toe)
 
 EphKey (const apollo::drivers::gnss::GnssType type, const unsigned int prn, const unsigned int week_num, double toe)
 
 EphKey ()
 
bool operator< (const EphKey &key2) const
 
bool operator== (const EphKey &key2) const
 
EphKeyoperator= (const EphKey &key2)
 

Public 属性

apollo::drivers::gnss::GnssType gnss_type
 
unsigned int sat_prn
 
double eph_toe
 

静态 Public 属性

static const int second_per_week = 604800
 

详细描述

在文件 localization_gnss_process.h51 行定义.

构造及析构函数说明

◆ EphKey() [1/3]

apollo::localization::msf::EphKey::EphKey ( const apollo::drivers::gnss::GnssType  type,
const unsigned int  prn,
double  toe 
)
inline

在文件 localization_gnss_process.h57 行定义.

◆ EphKey() [2/3]

apollo::localization::msf::EphKey::EphKey ( const apollo::drivers::gnss::GnssType  type,
const unsigned int  prn,
const unsigned int  week_num,
double  toe 
)
inline

在文件 localization_gnss_process.h63 行定义.

64 {
65 gnss_type = type;
66 sat_prn = prn;
67 eph_toe = toe + week_num * second_per_week;
68 }

◆ EphKey() [3/3]

apollo::localization::msf::EphKey::EphKey ( )
inline

成员函数说明

◆ operator<()

bool apollo::localization::msf::EphKey::operator< ( const EphKey key2) const
inline

在文件 localization_gnss_process.h74 行定义.

74 {
75 if (gnss_type < key2.gnss_type) {
76 return true;
77 }
78 if (gnss_type == key2.gnss_type) {
79 if (sat_prn < key2.sat_prn) {
80 return true;
81 }
82 if (sat_prn == key2.sat_prn) {
83 return eph_toe < key2.eph_toe;
84 }
85 return false;
86 }
87 return false;
88 }

◆ operator=()

EphKey & apollo::localization::msf::EphKey::operator= ( const EphKey key2)
inline

在文件 localization_gnss_process.h93 行定义.

93 {
94 gnss_type = key2.gnss_type;
95 sat_prn = key2.sat_prn;
96 eph_toe = key2.eph_toe;
97 return *this;
98 }

◆ operator==()

bool apollo::localization::msf::EphKey::operator== ( const EphKey key2) const
inline

在文件 localization_gnss_process.h89 行定义.

89 {
90 return (gnss_type == key2.gnss_type) && (sat_prn == key2.sat_prn) &&
91 (eph_toe == key2.eph_toe);
92 }

类成员变量说明

◆ eph_toe

double apollo::localization::msf::EphKey::eph_toe

在文件 localization_gnss_process.h55 行定义.

◆ gnss_type

apollo::drivers::gnss::GnssType apollo::localization::msf::EphKey::gnss_type

在文件 localization_gnss_process.h52 行定义.

◆ sat_prn

unsigned int apollo::localization::msf::EphKey::sat_prn

在文件 localization_gnss_process.h53 行定义.

◆ second_per_week

const int apollo::localization::msf::EphKey::second_per_week = 604800
static

在文件 localization_gnss_process.h56 行定义.


该结构体的文档由以下文件生成: