Apollo 10.0
自动驾驶开放平台
apollo::localization::msf::GnssMagTransfer类 参考

#include <gnss_msg_transfer.h>

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

静态 Public 成员函数

static void Transfer (const apollo::drivers::gnss::BandObservation &in, BandObservationMsg *out)
 
static void Transfer (const apollo::drivers::gnss::SatelliteObservation &in, SatelliteObservationMsg *out)
 
static void Transfer (const apollo::drivers::gnss::EpochObservation &in, EpochObservationMsg *out)
 
static void Transfer (const apollo::drivers::gnss::KepplerOrbit &in, KepplerOrbitMsg *out)
 
static void Transfer (const apollo::drivers::gnss::GlonassOrbit &in, GlonassOrbitMsg *out)
 
static void Transfer (const apollo::drivers::gnss::GnssEphemeris &in, GnssEphemerisMsg *out)
 

详细描述

在文件 gnss_msg_transfer.h35 行定义.

成员函数说明

◆ Transfer() [1/6]

void apollo::localization::msf::GnssMagTransfer::Transfer ( const apollo::drivers::gnss::BandObservation in,
BandObservationMsg *  out 
)
static

在文件 gnss_msg_transfer.cc24 行定义.

25 {
26 CHECK_NOTNULL(out);
27 if (in.has_band_id()) {
28 out->set_band_id(GnssBandID(in.band_id()));
29 }
30 if (in.has_frequency_value()) {
31 out->set_frequency_value(in.frequency_value());
32 }
33 if (in.has_pseudo_type()) {
34 out->set_pseudo_type(PseudoType(in.pseudo_type()));
35 }
36 if (in.has_pseudo_range()) {
37 out->set_pseudo_range(in.pseudo_range());
38 }
39 if (in.has_carrier_phase()) {
40 out->set_carrier_phase(in.carrier_phase());
41 }
42 if (in.has_loss_lock_index()) {
43 out->set_loss_lock_index(in.loss_lock_index());
44 }
45 if (in.has_doppler()) {
46 out->set_doppler(in.doppler());
47 }
48 if (in.has_snr()) {
49 out->set_snr(in.snr());
50 }
51}

◆ Transfer() [2/6]

void apollo::localization::msf::GnssMagTransfer::Transfer ( const apollo::drivers::gnss::EpochObservation in,
EpochObservationMsg *  out 
)
static

在文件 gnss_msg_transfer.cc73 行定义.

75 {
76 CHECK_NOTNULL(out);
77 if (in.has_receiver_id()) {
78 out->set_receiver_id(in.receiver_id());
79 }
80 if (in.has_gnss_time_type()) {
81 out->set_gnss_time_type(GnssTimeType(in.gnss_time_type()));
82 }
83 if (in.has_gnss_week()) {
84 out->set_gnss_week(in.gnss_week());
85 }
86 if (in.has_gnss_second_s()) {
87 out->set_gnss_second_s(in.gnss_second_s());
88 }
89 if (in.has_position_x()) {
90 out->set_position_x(in.position_x());
91 }
92 if (in.has_position_y()) {
93 out->set_position_y(in.position_y());
94 }
95 if (in.has_position_z()) {
96 out->set_position_z(in.position_z());
97 }
98 if (in.has_health_flag()) {
99 out->set_health_flag(in.health_flag());
100 }
101 if (in.has_sat_obs_num()) {
102 out->set_sat_obs_num(in.sat_obs_num());
103 }
104 out->clear_sat_obs();
105 for (int idx = 0; idx < in.sat_obs_size(); ++idx) {
106 auto tmp = out->add_sat_obs();
107 Transfer(in.sat_obs(idx), tmp);
108 }
109}
static void Transfer(const apollo::drivers::gnss::BandObservation &in, BandObservationMsg *out)

◆ Transfer() [3/6]

void apollo::localization::msf::GnssMagTransfer::Transfer ( const apollo::drivers::gnss::GlonassOrbit in,
GlonassOrbitMsg *  out 
)
static

在文件 gnss_msg_transfer.cc230 行定义.

231 {
232 CHECK_NOTNULL(out);
233 if (in.has_gnss_type()) {
234 out->set_gnss_type(GnssType(in.gnss_type()));
235 }
236 if (in.has_slot_prn()) {
237 out->set_slot_prn(in.slot_prn());
238 }
239 if (in.has_gnss_time_type()) {
240 out->set_gnss_time_type(GnssTimeType(in.gnss_time_type()));
241 }
242 if (in.has_toe()) {
243 out->set_toe(in.toe());
244 }
245 if (in.has_year()) {
246 out->set_year(in.year());
247 }
248 if (in.has_month()) {
249 out->set_month(in.month());
250 }
251 if (in.has_day()) {
252 out->set_day(in.day());
253 }
254 if (in.has_hour()) {
255 out->set_hour(in.hour());
256 }
257 if (in.has_minute()) {
258 out->set_minute(in.minute());
259 }
260 if (in.has_second_s()) {
261 out->set_second_s(in.second_s());
262 }
263 if (in.has_frequency_no()) {
264 out->set_frequency_no(in.frequency_no());
265 }
266 if (in.has_week_num()) {
267 out->set_week_num(in.week_num());
268 }
269 if (in.has_week_second_s()) {
270 out->set_week_second_s(in.week_second_s());
271 }
272 if (in.has_tk()) {
273 out->set_tk(in.tk());
274 }
275 if (in.has_clock_offset()) {
276 out->set_clock_offset(in.clock_offset());
277 }
278 if (in.has_clock_drift()) {
279 out->set_clock_drift(in.clock_drift());
280 }
281 if (in.has_health()) {
282 out->set_health(in.health());
283 }
284 if (in.has_position_x()) {
285 out->set_position_x(in.position_x());
286 }
287 if (in.has_position_y()) {
288 out->set_position_y(in.position_y());
289 }
290 if (in.has_position_z()) {
291 out->set_position_z(in.position_z());
292 }
293 if (in.has_velocity_x()) {
294 out->set_velocity_x(in.velocity_x());
295 }
296 if (in.has_velocity_y()) {
297 out->set_velocity_y(in.velocity_y());
298 }
299 if (in.has_velocity_z()) {
300 out->set_velocity_z(in.velocity_z());
301 }
302 if (in.has_accelerate_x()) {
303 out->set_accelerate_x(in.accelerate_x());
304 }
305 if (in.has_accelerate_y()) {
306 out->set_accelerate_y(in.accelerate_y());
307 }
308 if (in.has_accelerate_z()) {
309 out->set_accelerate_z(in.accelerate_z());
310 }
311 if (in.has_infor_age()) {
312 out->set_infor_age(in.infor_age());
313 }
314}

◆ Transfer() [4/6]

void apollo::localization::msf::GnssMagTransfer::Transfer ( const apollo::drivers::gnss::GnssEphemeris in,
GnssEphemerisMsg *  out 
)
static

在文件 gnss_msg_transfer.cc316 行定义.

317 {
318 CHECK_NOTNULL(out);
319 if (in.has_gnss_type()) {
320 out->set_gnss_type(GnssType(in.gnss_type()));
321 }
322 if (in.has_keppler_orbit()) {
323 auto tmp = out->mutable_keppler_orbit();
324 Transfer(in.keppler_orbit(), tmp);
325 }
326 if (in.has_glonass_orbit()) {
327 auto tmp = out->mutable_glonass_orbit();
328 Transfer(in.glonass_orbit(), tmp);
329 }
330}

◆ Transfer() [5/6]

void apollo::localization::msf::GnssMagTransfer::Transfer ( const apollo::drivers::gnss::KepplerOrbit in,
KepplerOrbitMsg *  out 
)
static

在文件 gnss_msg_transfer.cc111 行定义.

112 {
113 CHECK_NOTNULL(out);
114 if (in.has_gnss_type()) {
115 out->set_gnss_type(GnssType(in.gnss_type()));
116 }
117 if (in.has_sat_prn()) {
118 out->set_sat_prn(in.sat_prn());
119 }
120 if (in.has_gnss_time_type()) {
121 out->set_gnss_time_type(GnssTimeType(in.gnss_time_type()));
122 }
123 if (in.has_year()) {
124 out->set_year(in.year());
125 }
126 if (in.has_month()) {
127 out->set_month(in.month());
128 }
129 if (in.has_day()) {
130 out->set_day(in.day());
131 }
132 if (in.has_hour()) {
133 out->set_hour(in.hour());
134 }
135 if (in.has_minute()) {
136 out->set_minute(in.minute());
137 }
138 if (in.has_second_s()) {
139 out->set_second_s(in.second_s());
140 }
141 if (in.has_week_num()) {
142 out->set_week_num(in.week_num());
143 }
144 if (in.has_reserved()) {
145 out->set_reserved(in.reserved());
146 }
147 if (in.has_af0()) {
148 out->set_af0(in.af0());
149 }
150 if (in.has_af1()) {
151 out->set_af1(in.af1());
152 }
153 if (in.has_af2()) {
154 out->set_af2(in.af2());
155 }
156 if (in.has_iode()) {
157 out->set_iode(in.iode());
158 }
159 if (in.has_deltan()) {
160 out->set_deltan(in.deltan());
161 }
162 if (in.has_m0()) {
163 out->set_m0(in.m0());
164 }
165 if (in.has_e()) {
166 out->set_e(in.e());
167 }
168 if (in.has_roota()) {
169 out->set_roota(in.roota());
170 }
171 if (in.has_toe()) {
172 out->set_toe(in.toe());
173 }
174 if (in.has_toc()) {
175 out->set_toc(in.toc());
176 }
177 if (in.has_cic()) {
178 out->set_cic(in.cic());
179 }
180 if (in.has_crc()) {
181 out->set_crc(in.crc());
182 }
183 if (in.has_cis()) {
184 out->set_cis(in.cis());
185 }
186 if (in.has_crs()) {
187 out->set_crs(in.crs());
188 }
189 if (in.has_cuc()) {
190 out->set_cuc(in.cuc());
191 }
192 if (in.has_cus()) {
193 out->set_cus(in.cus());
194 }
195 if (in.has_omega0()) {
196 out->set_omega0(in.omega0());
197 }
198 if (in.has_omega()) {
199 out->set_omega(in.omega());
200 }
201 if (in.has_i0()) {
202 out->set_i0(in.i0());
203 }
204 if (in.has_omegadot()) {
205 out->set_omegadot(in.omegadot());
206 }
207 if (in.has_idot()) {
208 out->set_idot(in.idot());
209 }
210 if (in.has_codesonl2channel()) {
211 out->set_codesonl2channel(in.codesonl2channel());
212 }
213 if (in.has_l2pdataflag()) {
214 out->set_l2pdataflag(in.l2pdataflag());
215 }
216 if (in.has_accuracy()) {
217 out->set_accuracy(in.accuracy());
218 }
219 if (in.has_health()) {
220 out->set_health(in.health());
221 }
222 if (in.has_tgd()) {
223 out->set_tgd(in.tgd());
224 }
225 if (in.has_iodc()) {
226 out->set_iodc(in.iodc());
227 }
228}

◆ Transfer() [6/6]

void apollo::localization::msf::GnssMagTransfer::Transfer ( const apollo::drivers::gnss::SatelliteObservation in,
SatelliteObservationMsg *  out 
)
static

在文件 gnss_msg_transfer.cc53 行定义.

55 {
56 CHECK_NOTNULL(out);
57 if (in.has_sat_prn()) {
58 out->set_sat_prn(in.sat_prn());
59 }
60 if (in.has_sat_sys()) {
61 out->set_sat_sys(GnssType(in.sat_sys()));
62 }
63 if (in.has_band_obs_num()) {
64 out->set_band_obs_num(in.band_obs_num());
65 }
66 out->clear_band_obs();
67 for (int idx = 0; idx < in.band_obs_size(); ++idx) {
68 auto tmp = out->add_band_obs();
69 Transfer(in.band_obs(idx), tmp);
70 }
71}

该类的文档由以下文件生成: