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
26DECLARE_string(localization_module_name);
27
28DECLARE_double(localization_publish_freq);
29
30DECLARE_string(localization_config_file);
31
32DECLARE_bool(enable_gps_imu_interprolate);
33
34DECLARE_bool(enable_gps_imu_compensate);
35
36DECLARE_int32(gps_imu_compensate_ns_tolerance);
37
38DECLARE_bool(enable_watchdog);
39
40DECLARE_double(gps_time_delay_tolerance);
41DECLARE_double(gps_imu_timestamp_sec_diff_tolerance);
42DECLARE_double(timestamp_sec_tolerance);
43
44DECLARE_double(map_offset_x);
45DECLARE_double(map_offset_y);
46DECLARE_double(map_offset_z);
47
48DECLARE_int32(report_threshold_err_num);
49DECLARE_double(report_gps_imu_time_diff_threshold);
50
51DECLARE_bool(enable_gps_timestamp);
52
53// lidar module
54DECLARE_string(local_map_name);
55DECLARE_string(lidar_extrinsics_file);
56DECLARE_string(lidar_height_file);
57DECLARE_double(lidar_height_default);
58DECLARE_int32(lidar_localization_mode);
59DECLARE_int32(lidar_yaw_align_mode);
60DECLARE_int32(lidar_filter_size);
61DECLARE_double(lidar_imu_max_delay_time);
62DECLARE_double(lidar_map_coverage_theshold);
63DECLARE_bool(lidar_debug_log_flag);
64DECLARE_int32(point_cloud_step);
65DECLARE_bool(if_use_avx);
66
67// integ module
68DECLARE_bool(integ_ins_can_self_align);
69DECLARE_bool(integ_sins_align_with_vel);
70DECLARE_bool(integ_sins_state_check);
71DECLARE_double(integ_sins_state_span_time);
72DECLARE_double(integ_sins_state_pos_std);
73
74DECLARE_double(vel_threshold_get_yaw);
75
76// gnss module
77DECLARE_bool(enable_ins_aid_rtk);
78DECLARE_string(eph_buffer_path);
79DECLARE_string(ant_imu_leverarm_file);
80DECLARE_bool(gnss_debug_log_flag);
81DECLARE_bool(if_imuant_from_file);
82DECLARE_double(imu_to_ant_offset_x);
83DECLARE_double(imu_to_ant_offset_y);
84DECLARE_double(imu_to_ant_offset_z);
85DECLARE_double(imu_to_ant_offset_ux);
86DECLARE_double(imu_to_ant_offset_uy);
87DECLARE_double(imu_to_ant_offset_uz);
88
89// common
91DECLARE_bool(if_utm_zone_id_from_folder);
92DECLARE_bool(trans_gpstime_to_utctime);
93DECLARE_int32(gnss_mode);
94DECLARE_bool(imu_coord_rfu);
95DECLARE_bool(gnss_only_init);
96DECLARE_bool(enable_lidar_localization);
97
98DECLARE_string(lidar_topic);
99DECLARE_string(broadcast_tf_frame_id);
100DECLARE_string(broadcast_tf_child_frame_id);
101
102// imu vehicle extrinsic
103DECLARE_string(vehicle_imu_file);
104DECLARE_bool(if_vehicle_imu_from_file);
105DECLARE_double(imu_vehicle_qx);
106DECLARE_double(imu_vehicle_qy);
107DECLARE_double(imu_vehicle_qz);
108DECLARE_double(imu_vehicle_qw);
109
110// visualization
111DECLARE_string(map_visual_dir);
112
113// Status
114DECLARE_double(imu_delay_time_threshold_1);
115DECLARE_double(imu_delay_time_threshold_2);
116DECLARE_double(imu_delay_time_threshold_3);
117
118DECLARE_double(imu_missing_time_threshold_1);
119DECLARE_double(imu_missing_time_threshold_2);
120DECLARE_double(imu_missing_time_threshold_3);
121
122DECLARE_double(bestgnsspose_loss_time_threshold);
123DECLARE_double(lidar_loss_time_threshold);
124
125DECLARE_double(localization_std_x_threshold_1);
126DECLARE_double(localization_std_y_threshold_1);
127
128DECLARE_double(localization_std_x_threshold_2);
129DECLARE_double(localization_std_y_threshold_2);
130
131// ndt_localization
132DECLARE_string(ndt_map_dir);
133DECLARE_bool(ndt_debug_log_flag);
134DECLARE_double(online_resolution);
135DECLARE_int32(ndt_max_iterations);
136DECLARE_double(ndt_target_resolution);
137DECLARE_double(ndt_line_search_step_size);
138DECLARE_double(ndt_transformation_epsilon);
139DECLARE_int32(ndt_filter_size_x);
140DECLARE_int32(ndt_filter_size_y);
141DECLARE_int32(ndt_bad_score_count_threshold);
142DECLARE_double(ndt_warnning_ndt_score);
143DECLARE_double(ndt_error_ndt_score);
DECLARE_double(localization_publish_freq)
DECLARE_bool(enable_gps_imu_interprolate)
DECLARE_int32(gps_imu_compensate_ns_tolerance)
DECLARE_string(localization_module_name)