20 "localization module name");
23 "localization publishing frequency.");
26 "/apollo/modules/localization/conf/localization_config.pb.txt",
27 "localization config file");
30DEFINE_bool(enable_gps_imu_interprolate,
true,
"enable GPU/IMU interprolate");
33 "enable compensate of GPU/IMU timestamp");
36 "tolerance of GPU/IMU timestamp compensator");
41 "gps message time delay tolerance (sec)");
44 "gps/imu timestamp diff tolerance (sec)");
46DEFINE_double(timestamp_sec_tolerance, 10e-7,
"timestamp second tolerance");
52DEFINE_int32(report_threshold_err_num, 10,
"report threshold error num");
54 "report threshold of timestamp diff between gps and imu(sec)");
57 "True to set gps timestamp as localization header timestamp");
60DEFINE_string(local_map_name,
"local_map",
"The path of localization map.");
62 "/apollo/modules/localization/msf/params/velodyne_params/"
63 "velodyne64_novatel_extrinsics_example.yaml",
64 "Lidar extrinsics parameter file.");
66 "/apollo/modules/localization/msf/params/velodyne_params/"
67 "velodyne64_height.yaml",
68 "Velodyne extrinsic path for the vehicle in use, "
69 "where <ros> is the placeholder of ROS root.");
71 "The height from the center of velodyne to ground.");
73 lidar_localization_mode, 2,
74 "Localization mode, 0 for intensity, 1 for altitude, 2 for fusion.");
76 "image yaw align mode, 0 for align off, "
77 "1 for fusion, 2 for fusion with multithread.");
80 "Lidar msg and imu msg max delay time");
82 "Threshold to detect whether vehicle is out of map");
83DEFINE_bool(lidar_debug_log_flag,
false,
"Lidar Debug switch.");
86 "if use avx to accelerate lidar localization, "
87 "need cpu to support AVX intel instrinsics");
101 ant_imu_leverarm_file,
102 "/apollo/modules/localization/msf/params/gnss_params/ant_imu_leverarm.yaml",
103 "Ant to imu leferarm.");
105DEFINE_bool(if_imuant_from_file,
true,
"Use imu ant from gnss configure file.");
116 "load utm zone id from local map folder");
118DEFINE_int32(gnss_mode, 0,
"GNSS Mode, 0 for bestgnss pose, 1 for self gnss.");
121 "Whether use bestgnsspose as measure after initializaiton.");
123 "Enable lidar-based localization.");
125DEFINE_string(lidar_topic,
"/apollo/sensor/lidar128/compensator/PointCloud2",
126 "lidar pointcloud topic");
129 "localization frame id in tf");
132 "/apollo/modules/localization/msf/params"
133 "/vehicle_params/vehicle_imu_extrinsics.yaml",
134 "Vehicle coord to imu coord.");
136 "Whether load vehicle imu extrinsic from yaml file");
144 "The path of map_visual folder.");
148 "imu delay time is larger than 0.1s");
150 "imu delay time is larger than 0.05s");
152 "imu delay time is larger than 0.02s");
155 "imu missing time is larger than 0.1s");
157 "imu missing time is larger than 0.05s");
159 "imu missing time is larger than 0.01s");
162 "threshold for time gap between imu and bestgnsspose time");
164 "threshold for time gap between imu and lidar pose time");
167 "threshold for lateral std of localization result");
169 "threshold for longitudinal std of localization result");
172 "threshold for lateral std of localization result");
174 "threshold for longitudinal std of localization result");
178DEFINE_bool(ndt_debug_log_flag,
false,
"NDT Localization log switch");
180DEFINE_int32(ndt_max_iterations, 10,
"maximum iterations for NDT matching");
182 "target resolution for ndt localization");
184 "line search step size for ndt matching");
186 "iteration convergence condition on transformation");
190 "count for continuous bad ndt fitness score");
192 "warnning ndt fitness score threshold");
193DEFINE_double(ndt_error_ndt_score, 2.0,
"error ndt fitness score threshold");
DEFINE_int32(gps_imu_compensate_ns_tolerance, 10000000, "tolerance of GPU/IMU timestamp compensator")
DEFINE_double(localization_publish_freq, 100, "localization publishing frequency.")
DEFINE_bool(enable_gps_imu_interprolate, true, "enable GPU/IMU interprolate")
DEFINE_string(localization_module_name, "localization", "localization module name")
The gflags used by localization module