Apollo
10.0
自动驾驶开放平台
localization_gflags.h
浏览该文件的文档.
1
/******************************************************************************
2
* Copyright 2017 The Apollo Authors. All Rights Reserved.
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*****************************************************************************/
16
22
#pragma once
23
24
#include "gflags/gflags.h"
25
26
DECLARE_string
(localization_module_name);
27
28
DECLARE_double
(localization_publish_freq);
29
30
DECLARE_string
(localization_config_file);
31
32
DECLARE_bool
(enable_gps_imu_interprolate);
33
34
DECLARE_bool
(enable_gps_imu_compensate);
35
36
DECLARE_int32
(gps_imu_compensate_ns_tolerance);
37
38
DECLARE_bool
(enable_watchdog);
39
40
DECLARE_double
(gps_time_delay_tolerance);
41
DECLARE_double
(gps_imu_timestamp_sec_diff_tolerance);
42
DECLARE_double
(timestamp_sec_tolerance);
43
44
DECLARE_double
(map_offset_x);
45
DECLARE_double
(map_offset_y);
46
DECLARE_double
(map_offset_z);
47
48
DECLARE_int32
(report_threshold_err_num);
49
DECLARE_double
(report_gps_imu_time_diff_threshold);
50
51
DECLARE_bool
(enable_gps_timestamp);
52
53
// lidar module
54
DECLARE_string
(local_map_name);
55
DECLARE_string
(lidar_extrinsics_file);
56
DECLARE_string
(lidar_height_file);
57
DECLARE_double
(lidar_height_default);
58
DECLARE_int32
(lidar_localization_mode);
59
DECLARE_int32
(lidar_yaw_align_mode);
60
DECLARE_int32
(lidar_filter_size);
61
DECLARE_double
(lidar_imu_max_delay_time);
62
DECLARE_double
(lidar_map_coverage_theshold);
63
DECLARE_bool
(lidar_debug_log_flag);
64
DECLARE_int32
(point_cloud_step);
65
DECLARE_bool
(if_use_avx);
66
67
// integ module
68
DECLARE_bool
(integ_ins_can_self_align);
69
DECLARE_bool
(integ_sins_align_with_vel);
70
DECLARE_bool
(integ_sins_state_check);
71
DECLARE_double
(integ_sins_state_span_time);
72
DECLARE_double
(integ_sins_state_pos_std);
73
74
DECLARE_double
(vel_threshold_get_yaw);
75
76
// gnss module
77
DECLARE_bool
(enable_ins_aid_rtk);
78
DECLARE_string
(eph_buffer_path);
79
DECLARE_string
(ant_imu_leverarm_file);
80
DECLARE_bool
(gnss_debug_log_flag);
81
DECLARE_bool
(if_imuant_from_file);
82
DECLARE_double
(imu_to_ant_offset_x);
83
DECLARE_double
(imu_to_ant_offset_y);
84
DECLARE_double
(imu_to_ant_offset_z);
85
DECLARE_double
(imu_to_ant_offset_ux);
86
DECLARE_double
(imu_to_ant_offset_uy);
87
DECLARE_double
(imu_to_ant_offset_uz);
88
89
// common
90
DECLARE_double
(imu_rate);
91
DECLARE_bool
(if_utm_zone_id_from_folder);
92
DECLARE_bool
(trans_gpstime_to_utctime);
93
DECLARE_int32
(gnss_mode);
94
DECLARE_bool
(imu_coord_rfu);
95
DECLARE_bool
(gnss_only_init);
96
DECLARE_bool
(enable_lidar_localization);
97
98
DECLARE_string
(lidar_topic);
99
DECLARE_string
(broadcast_tf_frame_id);
100
DECLARE_string
(broadcast_tf_child_frame_id);
101
102
// imu vehicle extrinsic
103
DECLARE_string
(vehicle_imu_file);
104
DECLARE_bool
(if_vehicle_imu_from_file);
105
DECLARE_double
(imu_vehicle_qx);
106
DECLARE_double
(imu_vehicle_qy);
107
DECLARE_double
(imu_vehicle_qz);
108
DECLARE_double
(imu_vehicle_qw);
109
110
// visualization
111
DECLARE_string
(map_visual_dir);
112
113
// Status
114
DECLARE_double
(imu_delay_time_threshold_1);
115
DECLARE_double
(imu_delay_time_threshold_2);
116
DECLARE_double
(imu_delay_time_threshold_3);
117
118
DECLARE_double
(imu_missing_time_threshold_1);
119
DECLARE_double
(imu_missing_time_threshold_2);
120
DECLARE_double
(imu_missing_time_threshold_3);
121
122
DECLARE_double
(bestgnsspose_loss_time_threshold);
123
DECLARE_double
(lidar_loss_time_threshold);
124
125
DECLARE_double
(localization_std_x_threshold_1);
126
DECLARE_double
(localization_std_y_threshold_1);
127
128
DECLARE_double
(localization_std_x_threshold_2);
129
DECLARE_double
(localization_std_y_threshold_2);
130
131
// ndt_localization
132
DECLARE_string
(ndt_map_dir);
133
DECLARE_bool
(ndt_debug_log_flag);
134
DECLARE_double
(online_resolution);
135
DECLARE_int32
(ndt_max_iterations);
136
DECLARE_double
(ndt_target_resolution);
137
DECLARE_double
(ndt_line_search_step_size);
138
DECLARE_double
(ndt_transformation_epsilon);
139
DECLARE_int32
(ndt_filter_size_x);
140
DECLARE_int32
(ndt_filter_size_y);
141
DECLARE_int32
(ndt_bad_score_count_threshold);
142
DECLARE_double
(ndt_warnning_ndt_score);
143
DECLARE_double
(ndt_error_ndt_score);
DECLARE_double
DECLARE_double(localization_publish_freq)
DECLARE_bool
DECLARE_bool(enable_gps_imu_interprolate)
DECLARE_int32
DECLARE_int32(gps_imu_compensate_ns_tolerance)
DECLARE_string
DECLARE_string(localization_module_name)
modules
localization
common
localization_gflags.h