prediction_gflags.h 5.0 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
#include "gflags/gflags.h"

Y
Yajia Zhang 已提交
21 22 23
DECLARE_double(double_precision);

// prediction trajectory and dynamic model
24
DECLARE_double(prediction_trajectory_time_length);
Y
Yajia Zhang 已提交
25 26
DECLARE_double(prediction_trajectory_time_resolution);
DECLARE_double(min_prediction_trajectory_spatial_length);
27 28
DECLARE_bool(enable_trajectory_validation_check);

Y
Yajia Zhang 已提交
29 30 31
DECLARE_double(vehicle_max_linear_acc);
DECLARE_double(vehicle_min_linear_acc);
DECLARE_double(vehicle_max_speed);
32

33
// Map
34
DECLARE_double(lane_search_radius);
K
kechxu 已提交
35
DECLARE_double(lane_search_radius_in_junction);
36
DECLARE_double(junction_search_radius);
37
DECLARE_double(pedestrian_nearby_lane_search_radius);
38

K
kechxu 已提交
39 40
// Scenario
DECLARE_double(junction_distance_threshold);
41
DECLARE_bool(enable_prioritize_obstacles);
42
DECLARE_bool(enable_junction_feature);
H
Hongyi 已提交
43
DECLARE_bool(enable_all_junction);
K
kechxu 已提交
44

45
// Obstacle features
H
Hongyi 已提交
46 47
DECLARE_double(scan_length);
DECLARE_double(scan_width);
48
DECLARE_double(back_dist_ignore_ped);
49
DECLARE_uint64(cruise_historical_frame_length);
50
DECLARE_bool(enable_kf_tracking);
51
DECLARE_double(max_angle_diff_to_adjust_velocity);
K
kechxu 已提交
52 53 54
DECLARE_double(q_var);
DECLARE_double(r_var);
DECLARE_double(p_var);
K
kechxu 已提交
55
DECLARE_double(go_approach_rate);
D
Dong Li 已提交
56

K
kechxu 已提交
57 58
DECLARE_int32(min_still_obstacle_history_length);
DECLARE_int32(max_still_obstacle_history_length);
59
DECLARE_double(still_obstacle_speed_threshold);
60
DECLARE_double(still_pedestrian_speed_threshold);
D
Dong Li 已提交
61
DECLARE_double(still_obstacle_position_std);
62
DECLARE_double(still_pedestrian_position_std);
K
kechxu 已提交
63
DECLARE_double(max_history_time);
64
DECLARE_double(target_lane_gap);
65 66
DECLARE_int32(max_num_current_lane);
DECLARE_int32(max_num_nearby_lane);
K
kechxu 已提交
67
DECLARE_double(max_lane_angle_diff);
K
kechxu 已提交
68 69 70
DECLARE_int32(max_num_current_lane_in_junction);
DECLARE_int32(max_num_nearby_lane_in_junction);
DECLARE_double(max_lane_angle_diff_in_junction);
71
DECLARE_bool(enable_pedestrian_acc);
72
DECLARE_double(coeff_mul_sigma);
73 74
DECLARE_double(pedestrian_max_speed);
DECLARE_double(pedestrian_max_acc);
K
kechxu 已提交
75
DECLARE_double(still_speed);
C
Calvin Miao 已提交
76
DECLARE_string(evaluator_vehicle_mlp_file);
77 78
DECLARE_string(evaluator_cruise_vehicle_go_model_file);
DECLARE_string(evaluator_cruise_vehicle_cutin_model_file);
C
Calvin Miao 已提交
79
DECLARE_string(evaluator_vehicle_rnn_file);
J
Jiacheng Pan 已提交
80
DECLARE_string(evaluator_vehicle_cruise_mlp_file);
81
DECLARE_string(evaluator_vehicle_junction_mlp_file);
82
DECLARE_int32(max_num_obstacles);
C
Calvin Miao 已提交
83
DECLARE_double(valid_position_diff_threshold);
84
DECLARE_double(valid_position_diff_rate_threshold);
K
kechxu 已提交
85
DECLARE_double(split_rate);
C
Calvin Miao 已提交
86
DECLARE_double(rnn_min_lane_relatice_s);
87 88
DECLARE_bool(adjust_velocity_by_obstacle_heading);
DECLARE_bool(adjust_velocity_by_position_shift);
89
DECLARE_bool(adjust_vehicle_heading_by_lane);
90
DECLARE_double(heading_filter_param);
91
DECLARE_uint64(max_num_lane_point);
92 93
DECLARE_double(distance_threshold_to_junction_exit);
DECLARE_double(angle_threshold_to_junction_exit);
C
Calvin Miao 已提交
94

95 96
// Validation checker
DECLARE_double(centripetal_acc_coeff);
K
kechxu 已提交
97

H
Hongyi 已提交
98 99 100 101 102
// Junction Scenario
DECLARE_double(junction_exit_lane_threshold);
DECLARE_double(distance_beyond_junction);
DECLARE_double(defualt_junction_range);

103 104
// Evaluator
DECLARE_double(time_to_center_if_not_reach);
105 106
DECLARE_double(default_s_if_no_obstacle_in_lane_sequence);
DECLARE_double(default_l_if_no_obstacle_in_lane_sequence);
107

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

120 121 122 123 124
// 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);
125
DECLARE_double(default_time_to_lat_end_state);
126 127 128 129
DECLARE_double(turning_curvature_lower_bound);
DECLARE_double(turning_curvature_upper_bound);
DECLARE_double(speed_at_lower_curvature);
DECLARE_double(speed_at_upper_curvature);
130
DECLARE_double(cost_function_alpha);
131 132
DECLARE_double(cost_function_sigma);
DECLARE_bool(use_bell_curve_for_cost_function);
133 134

DECLARE_int32(road_graph_max_search_horizon);
135 136 137 138

// scenario feature extraction
DECLARE_double(lane_distance_threshold);
DECLARE_double(lane_angle_difference_threshold);