Apollo 11.0
自动驾驶开放平台
dreamview_gflags.cc
浏览该文件的文档.
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
18
19DEFINE_string(dreamview_module_name, "dreamview", "dreamview module name");
20
21DEFINE_bool(dreamview_profiling_mode, false, "Run dreamview in profiling mode");
22
24 dreamview_profiling_duration, -1,
25 "Dreamview profiling duration in ms. Negative value will not restrict the "
26 "profiling time");
27
28DEFINE_string(static_file_dir, "/apollo/modules/dreamview_plus/frontend/dist",
29 "The path to the dreamview distribution directory. The default "
30 "value points to built-in version from the Apollo project.");
31
33 server_ports, "8888",
34 "Comma-separated list of ports to listen on. If the port is SSL, "
35 "a letter s must be appended, for example, 80,443s will open "
36 "port 80 and port 443.Dreamview always use 8899 and Dreamview Plus"
37 " always use 8888.");
38
39DEFINE_bool(routing_from_file, false,
40 "Whether Dreamview reads initial routing response from file.");
41
42DEFINE_string(routing_response_file,
43 "modules/map/data/demo/garage_routing.pb.txt",
44 "File path of the routing response that SimControl will read the "
45 "start point from. If this is absent, SimControl will directly "
46 "take the RoutingResponse from external to determine the start "
47 "point.");
48
49DEFINE_string(websocket_timeout_ms, "36000000",
50 "Time span that CivetServer keeps the websocket connection alive "
51 "without dropping it.");
52
53DEFINE_string(ssl_certificate, "",
54 "Path to the SSL certificate file. This option is only required "
55 "when at least one of the listening_ports is SSL. The file must "
56 "be in PEM format, and it must have both, private key and "
57 "certificate");
58
59DEFINE_double(sim_map_radius, 200.0,
60 "The radius within which Dreamview will find all the map "
61 "elements around the car.");
62
63DEFINE_bool(enable_update_size_check, true,
64 "True to check if the update byte number is less than threshold");
65
66DEFINE_uint32(max_update_size, 1000000,
67 "Number of max update bytes allowed to push to dreamview FE");
68
69DEFINE_bool(sim_world_with_routing_path, false,
70 "Whether the routing_path is included in sim_world proto.");
71
73 request_timeout_ms, "2000",
74 "Timeout for network read and network write operations, in milliseconds.");
75
76DEFINE_double(voxel_filter_size, 0.3, "VoxelGrid pointcloud filter leaf size");
77
78DEFINE_double(voxel_filter_height, 0.2,
79 "VoxelGrid pointcloud filter leaf height");
80
81DEFINE_double(system_status_lifetime_seconds, 30,
82 "Lifetime of a valid SystemStatus message. It's more like a "
83 "replay message if the timestamp is old, where we should ignore "
84 "the status change.");
85
86DEFINE_string(lidar_height_yaml,
87 "/apollo/modules/localization/msf/params/velodyne_params/"
88 "velodyne64_height.yaml",
89 "The yaml file for reading height of lidar w.r.t. ground.");
90
91DEFINE_int32(monitor_msg_pending_queue_size, 10,
92 "Max monitor message pending queue size");
93
94DEFINE_string(default_data_collection_config_path,
95 "/apollo/modules/dreamview_plus/conf/data_collection_table.pb.txt",
96 "Data collection table config path.");
97
98DEFINE_int32(loop_routing_end_to_start_distance_threshold, 10,
99 "Loop routing distance threshold: start to end");
100
101DEFINE_string(default_preprocess_config_path,
102 "/apollo/modules/dreamview_plus/conf/preprocess_table.pb.txt",
103 "Sensor calibration preprocess table config path.");
104
105DEFINE_string(vehicle_calibration_mode, "Vehicle Calibration",
106 "Name of vehicle calibration mode.");
107
108DEFINE_string(lidar_calibration_mode, "Lidar-IMU Sensor Calibration",
109 "Name of lidar_to_gnss calibration mode.");
110
111DEFINE_string(camera_calibration_mode, "Camera-Lidar Sensor Calibration",
112 "Name of camera_to_lidar calibration mode.");
113
114DEFINE_double(parking_routing_distance_threshold, 20.0,
115 "For open space planner parking situation: get the routing"
116 "end point based on this threshold.");
117
118DEFINE_string(plugin_path, "/.apollo/dreamview/plugins/", "Plugin placement");
119
120DEFINE_string(plugin_config_file_name_suffix, "_plugin_config.pb.txt",
121 "PLugin config file name!");
122
123DEFINE_string(plugin_channel_prefix, "/apollo/dreamview/plugins/",
124 "plugins must use this as channel prefix");
125
126DEFINE_string(resource_scenario_path, "/.apollo/resources/scenario_sets/",
127 "Scenario set placement");
128
129DEFINE_string(resource_dynamic_model_path,
130 "/.apollo/resources/dynamic_models/models/",
131 "Dynamic Models placement");
132
133DEFINE_string(dynamic_model_root_path, "/.apollo/resources/dynamic_models/",
134 "Dynamic Model root directory");
135
136DEFINE_string(dynamic_model_library_path,
137 "/.apollo/resources/dynamic_models/library/",
138 "Dynamic Model libs placement");
139
140DEFINE_string(dynamic_model_package_library_path,
141 "/opt/apollo/neo/lib/modules/dynamic_model/",
142 "Dynamic Model package lib path");
143
144DEFINE_string(apollo_package_meta_info_path_prefix,
145 "/opt/apollo/neo/share/packages/",
146 "apollo package meta info path prefix");
147
148DEFINE_string(sim_obstacle_stop_command, "pkill -9 -f \"sim_obstacle\" ",
149 "Sim obstacle stop command");
150
151DEFINE_string(sim_obstacle_path,
152 "/opt/apollo/neo/bin/sim_obstacle",
153 "sim obstacle binary placement.");
154
155DEFINE_string(gflag_command_arg,
156 " --flagfile=/apollo/modules/common/data/global_flagfile.txt",
157 "sim obstacle need use gflag!");
158
159DEFINE_string(sim_perfect_control, "Simulation Perfect Control",
160 "sim perfect control!");
161
162DEFINE_string(resource_record_path, "/.apollo/resources/records/",
163 "Records placement");
164
165DEFINE_string(resource_rtk_record_path, "/apollo/data/log",
166 "Waypoint Follow Records placement");
167
168DEFINE_string(cyber_recorder_stop_command, "pkill -9 cyber_recorder",
169 "stop play recorder");
170
171DEFINE_string(vehicles_config_path, "/apollo/modules/calibration/data",
172 "Vehicles config path.");
173
175 vehicle_changed_use_copy_mode, true,
176 "change vehicle use copy mode if set to true, else use symlink mode");
177
178DEFINE_string(lane_follow_command_topic, "/apollo/external_command/lane_follow",
179 "Lane follow command topic name.");
180
181DEFINE_string(valet_parking_command_topic,
182 "/apollo/external_command/valet_parking",
183 "Valet parking command topic name.");
184
185DEFINE_string(action_command_topic, "/apollo/external_command/action",
186 "Action command topic name.");
187DEFINE_string(data_handler_config_path, "/apollo/modules/dreamview_plus/conf/data_handler.conf",
188 "Data handler config path.");
189
190DEFINE_string(data_recorder_command_keyword, "cyber_recorder record",
191 "Data recorder command keyword.");
192
193DEFINE_string(data_record_default_name, "default_record_name",
194 "Data record default name");
195
196DEFINE_double(threshold_for_destination_check, 1.0,
197 "meters, which is 100 feet. This threshold is used to check if"
198 "the vehicle reaches the destination");
199DEFINE_string(dv_hmi_modes_config_path,
200 "/apollo/modules/dreamview/conf/hmi_modes",
201 "Dreamview HMI modes config path.");
202DEFINE_string(dv_plus_hmi_modes_config_path,
203 "/apollo/modules/dreamview_plus/conf/hmi_modes",
204 "Dreamview Plus HMI modes config path.");
205DEFINE_string(maps_data_path, "/apollo/modules/map/data", "Maps data path.");
206DEFINE_string(global_components_config_path,
207 "/apollo/modules/dreamview/conf/global_components_config.pb.txt",
208 "Global components config path.");
209
211 terminal_start_cmd,
212 "nohup /apollo/modules/dreamview_plus/backend/third_party_lib/cyber_shell "
213 "&",
214 "Terminal start cmd");
215
216DEFINE_string(terminal_stop_cmd, "pkill -9 -f \"cyber_shell\" ",
217 "Terminal start cmd");
218
219DEFINE_string(cyber_channels_key, "apollo.dreamview.Cyber",
220 "Cyber channels key");
221DEFINE_string(vehicle_data_config_filename,
222 "/apollo/modules/dreamview_plus/conf/vehicle_data.pb.txt",
223 "Vehicle data config file.");
224
225DEFINE_double(status_publish_interval, 5, "HMI Status publish interval.");
226
227DEFINE_string(current_mode_db_key, "/apollo/hmi/status:current_mode",
228 "Key to store hmi_status.current_mode in KV DB.");
229
230DEFINE_string(default_hmi_mode, "Default",
231 "Default HMI Mode when there is no cache.");
232
233DEFINE_string(default_rtk_record_file, "/apollo/data/log/garage.csv",
234 "Default rtk record file.");
235
236DEFINE_string(default_rtk_record_path, "/apollo/data/log/",
237 "Default rtk record path.");
238
239DEFINE_bool(dv_cpu_profile, false, "enable cpu profile");
240
241DEFINE_bool(dv_heap_profile, false, "enable heap profile");
242
244 monitor_timeout_threshold, 2.5,
245 "Monitor the maximum tolerable time from the last message sent. If "
246 "it exceeds the time, the autonomous driving will be exited.");
DEFINE_string(dreamview_module_name, "dreamview", "dreamview module name")
DEFINE_double(sim_map_radius, 200.0, "The radius within which Dreamview will find all the map " "elements around the car.")
DEFINE_bool(dreamview_profiling_mode, false, "Run dreamview in profiling mode")
DEFINE_uint32(max_update_size, 1000000, "Number of max update bytes allowed to push to dreamview FE")
DEFINE_int32(dreamview_profiling_duration, -1, "Dreamview profiling duration in ms. Negative value will not restrict the " "profiling time")