prediction_gflags.h 4.7 KB
Newer Older
D
Dong Li 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
/******************************************************************************
 * Copyright 2017 The Apollo Authors. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *****************************************************************************/

17 18
#pragma once

D
Dong Li 已提交
19 20 21 22
#include "gflags/gflags.h"

// System gflags
DECLARE_string(prediction_module_name);
C
Calvin Miao 已提交
23
DECLARE_string(prediction_conf_file);
S
siyangy 已提交
24
DECLARE_string(prediction_adapter_config_filename);
25
DECLARE_string(prediction_data_dir);
D
Dong Li 已提交
26

27 28 29
DECLARE_bool(prediction_test_mode);
DECLARE_double(prediction_test_duration);

30
DECLARE_bool(prediction_offline_mode);
31
DECLARE_string(prediction_offline_bags);
32

33
DECLARE_double(prediction_duration);
34
DECLARE_double(prediction_period);
K
kechxu 已提交
35
DECLARE_double(double_precision);
36
DECLARE_double(min_prediction_length);
37

38 39
// Bag replay timestamp gap
DECLARE_double(replay_timestamp_gap);
40
DECLARE_int32(max_num_dump_feature);
41

42
// Map
43
DECLARE_double(lane_search_radius);
K
kechxu 已提交
44
DECLARE_double(lane_search_radius_in_junction);
45
DECLARE_double(junction_search_radius);
46

K
kechxu 已提交
47 48
// Scenario
DECLARE_double(junction_distance_threshold);
49
DECLARE_bool(enable_prioritize_obstacles);
50
DECLARE_bool(enable_junction_feature);
K
kechxu 已提交
51

52
// Obstacle features
H
Hongyi 已提交
53 54
DECLARE_double(scan_length);
DECLARE_double(scan_width);
55
DECLARE_uint32(cruise_historical_frame_length);
56
DECLARE_bool(enable_kf_tracking);
K
kechxu 已提交
57 58
DECLARE_double(max_acc);
DECLARE_double(min_acc);
59
DECLARE_double(max_speed);
60
DECLARE_double(max_angle_diff_to_adjust_velocity);
K
kechxu 已提交
61 62 63
DECLARE_double(q_var);
DECLARE_double(r_var);
DECLARE_double(p_var);
K
kechxu 已提交
64
DECLARE_double(go_approach_rate);
D
Dong Li 已提交
65

K
kechxu 已提交
66 67
DECLARE_int32(min_still_obstacle_history_length);
DECLARE_int32(max_still_obstacle_history_length);
68
DECLARE_double(still_obstacle_speed_threshold);
69
DECLARE_double(still_pedestrian_speed_threshold);
D
Dong Li 已提交
70
DECLARE_double(still_obstacle_position_std);
71
DECLARE_double(still_pedestrian_position_std);
K
kechxu 已提交
72
DECLARE_double(max_history_time);
73
DECLARE_double(target_lane_gap);
74 75
DECLARE_int32(max_num_current_lane);
DECLARE_int32(max_num_nearby_lane);
K
kechxu 已提交
76
DECLARE_double(max_lane_angle_diff);
K
kechxu 已提交
77 78 79
DECLARE_int32(max_num_current_lane_in_junction);
DECLARE_int32(max_num_nearby_lane_in_junction);
DECLARE_double(max_lane_angle_diff_in_junction);
80
DECLARE_bool(enable_pedestrian_acc);
81
DECLARE_double(coeff_mul_sigma);
82 83
DECLARE_double(pedestrian_max_speed);
DECLARE_double(pedestrian_max_acc);
K
kechxu 已提交
84
DECLARE_double(prediction_pedestrian_total_time);
K
kechxu 已提交
85
DECLARE_double(still_speed);
C
Calvin Miao 已提交
86
DECLARE_string(evaluator_vehicle_mlp_file);
87 88
DECLARE_string(evaluator_cruise_vehicle_go_model_file);
DECLARE_string(evaluator_cruise_vehicle_cutin_model_file);
C
Calvin Miao 已提交
89
DECLARE_string(evaluator_vehicle_rnn_file);
J
Jiacheng Pan 已提交
90
DECLARE_string(evaluator_vehicle_cruise_mlp_file);
91
DECLARE_string(evaluator_vehicle_junction_mlp_file);
92
DECLARE_int32(max_num_obstacles);
C
Calvin Miao 已提交
93
DECLARE_double(valid_position_diff_threshold);
94
DECLARE_double(valid_position_diff_rate_threshold);
K
kechxu 已提交
95
DECLARE_double(split_rate);
C
Calvin Miao 已提交
96
DECLARE_double(rnn_min_lane_relatice_s);
97 98
DECLARE_bool(adjust_velocity_by_obstacle_heading);
DECLARE_bool(adjust_velocity_by_position_shift);
99
DECLARE_bool(adjust_vehicle_heading_by_lane);
100
DECLARE_double(heading_filter_param);
101
DECLARE_uint32(max_num_lane_point);
C
Calvin Miao 已提交
102

103 104
// Validation checker
DECLARE_double(centripetal_acc_coeff);
K
kechxu 已提交
105

106
// Obstacle trajectory
107
DECLARE_bool(enable_cruise_regression);
108
DECLARE_double(lane_sequence_threshold);
109
DECLARE_double(lane_change_dist);
C
Calvin Miao 已提交
110
DECLARE_bool(enable_lane_sequence_acc);
111
DECLARE_bool(enable_trim_prediction_trajectory);
112
DECLARE_bool(enable_trajectory_validation_check);
113
DECLARE_double(distance_beyond_junction);
114
DECLARE_double(adc_trajectory_search_length);
115
DECLARE_double(virtual_lane_radius);
116
DECLARE_double(default_lateral_approach_speed);
117
DECLARE_double(centripedal_acc_threshold);
118

119 120 121 122 123
// move sequence prediction
DECLARE_double(time_upper_bound_to_lane_center);
DECLARE_double(time_lower_bound_to_lane_center);
DECLARE_double(sample_time_gap);
DECLARE_double(cost_alpha);
124
DECLARE_double(default_time_to_lat_end_state);
125 126 127 128
DECLARE_double(turning_curvature_lower_bound);
DECLARE_double(turning_curvature_upper_bound);
DECLARE_double(speed_at_lower_curvature);
DECLARE_double(speed_at_upper_curvature);
129
DECLARE_double(cost_function_alpha);
130 131
DECLARE_double(cost_function_sigma);
DECLARE_bool(use_bell_curve_for_cost_function);
132 133

DECLARE_int32(road_graph_max_search_horizon);