Apollo 11.0
自动驾驶开放平台
third_party_perception_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(third_party_perception_node_name, "third_party_perception",
20 "Node name");
21
22DEFINE_double(third_party_perception_freq, 10,
23 "third party perception timer frequency.");
24DEFINE_bool(enable_radar, true, "switch to turn on/off radar obstacles");
25
26// flags to calibrate mobileye, radar and localization
27DEFINE_double(mobileye_pos_adjust, 3.0,
28 "adjust mobileye objects's position due to distance between "
29 "mobileye and gps.");
30DEFINE_double(smartereye_pos_adjust, 3.0,
31 "adjust smartereye objects's position due to distance between "
32 "smartereye and gps.");
34 radar_pos_adjust, 3.0,
35 "adjust radar objects's position due to distance between radar and gps.");
36
37// object id offset
38DEFINE_int32(mobileye_id_offset, 0, "id offset for mobileye");
39DEFINE_int32(smartereye_id_offset, 0, "id offset for smartereye");
40DEFINE_int32(radar_id_offset, 1000, "id offset for radar");
41
42// flags to create fake bounding box
43DEFINE_double(default_car_length, 5.0, "default car length for bounding box.");
44DEFINE_double(default_truck_length, 10.0,
45 "default truck length for bounding box.");
46DEFINE_double(default_bike_length, 2.0,
47 "default bike length for bounding box.");
48DEFINE_double(default_ped_length, 0.5, "default ped length for bounding box.");
49DEFINE_double(default_unknown_length, 5.0,
50 "default unknown length for bounding box.");
51DEFINE_double(default_car_width, 3.0, "default car width for bounding box.");
52DEFINE_double(default_truck_width, 5.0,
53 "default truck width for bounding box.");
54DEFINE_double(default_bike_width, 1.0, "default bike width for bounding box.");
55DEFINE_double(default_ped_width, 0.5, "default ped width for bounding box.");
56DEFINE_double(default_unknown_width, 3.0,
57 "default unknown width for bounding box.");
58DEFINE_double(default_height, 3.0, "default height for bounding box.");
59
60// flags to filter radar obstacles
62 filter_y_distance, 7.5,
63 "fiter the radar objects far away from the main vehicle on y-axis.");
64DEFINE_double(movable_speed_threshold, 6.7,
65 "a radar object is considered as moving in a frame "
66 "if its speed > movable_speed_threshold");
68 movable_heading_threshold, 1.5,
69 "a radar object is considered as moving in a frame "
70 "if the difference between its heading and the main vehicle's heading "
71 "< movable_speed_threshold");
73 movable_frames_count_threshold, 5,
74 "a radar object is considered as a movable "
75 "if it is moving for consecutive movable_frames_count_threshold frames");
76DEFINE_int32(keep_radar_frames, 5, "number of delphi esr frames to keep");
77
78// TODO(QiL) : remove this temporary gflags
79DEFINE_bool(use_conti_radar, true,
80 "use conti or delphi radar, true is conti, false is delphi");
81
82DEFINE_double(max_mobileye_obstacle_length, 31.2,
83 "maximum mobileye obstacle length");
84
85DEFINE_double(max_mobileye_obstacle_width, 12.7,
86 "maximum mobileye obstacle length");
87
88DEFINE_bool(overwrite_mobileye_theta, true,
89 "overrite mobileye raw theta output");
DEFINE_bool(enable_radar, true, "switch to turn on/off radar obstacles")
DEFINE_string(third_party_perception_node_name, "third_party_perception", "Node name")
DEFINE_double(third_party_perception_freq, 10, "third party perception timer frequency.")
DEFINE_int32(mobileye_id_offset, 0, "id offset for mobileye")