prediction_gflags.h 3.9 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.
 *****************************************************************************/

Z
Zhang Liangliang 已提交
17 18
#ifndef MODULES_PREDICTION_COMMON_PREDICTION_GFLAGS_H_
#define MODULES_PREDICTION_COMMON_PREDICTION_GFLAGS_H_
D
Dong Li 已提交
19 20 21 22 23

#include "gflags/gflags.h"

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

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

31 32
DECLARE_bool(prediction_offline_mode);

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 40
// Bag replay timestamp gap
DECLARE_double(replay_timestamp_gap);

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

// Obstacle features
DECLARE_bool(enable_kf_tracking);
K
kechxu 已提交
48 49
DECLARE_double(max_acc);
DECLARE_double(min_acc);
50
DECLARE_double(max_speed);
K
kechxu 已提交
51 52 53
DECLARE_double(q_var);
DECLARE_double(r_var);
DECLARE_double(p_var);
K
kechxu 已提交
54
DECLARE_double(go_approach_rate);
D
Dong Li 已提交
55

56 57
DECLARE_int32(still_obstacle_history_length);
DECLARE_double(still_obstacle_speed_threshold);
58
DECLARE_double(still_pedestrian_speed_threshold);
D
Dong Li 已提交
59
DECLARE_double(still_obstacle_position_std);
60
DECLARE_double(still_pedestrian_position_std);
K
kechxu 已提交
61
DECLARE_double(max_history_time);
62
DECLARE_double(target_lane_gap);
63 64
DECLARE_int32(max_num_current_lane);
DECLARE_int32(max_num_nearby_lane);
K
kechxu 已提交
65
DECLARE_double(max_lane_angle_diff);
K
kechxu 已提交
66 67 68
DECLARE_int32(max_num_current_lane_in_junction);
DECLARE_int32(max_num_nearby_lane_in_junction);
DECLARE_double(max_lane_angle_diff_in_junction);
69
DECLARE_bool(enable_pedestrian_acc);
70
DECLARE_double(coeff_mul_sigma);
71 72
DECLARE_double(pedestrian_max_speed);
DECLARE_double(pedestrian_max_acc);
K
kechxu 已提交
73
DECLARE_double(prediction_pedestrian_total_time);
K
kechxu 已提交
74
DECLARE_double(still_speed);
C
Calvin Miao 已提交
75 76
DECLARE_string(evaluator_vehicle_mlp_file);
DECLARE_string(evaluator_vehicle_rnn_file);
77
DECLARE_int32(max_num_obstacles);
C
Calvin Miao 已提交
78
DECLARE_double(valid_position_diff_threshold);
79
DECLARE_double(valid_position_diff_rate_threshold);
K
kechxu 已提交
80
DECLARE_double(split_rate);
C
Calvin Miao 已提交
81
DECLARE_double(rnn_min_lane_relatice_s);
82 83
DECLARE_bool(adjust_velocity_by_obstacle_heading);
DECLARE_bool(adjust_velocity_by_position_shift);
84
DECLARE_double(heading_filter_param);
C
Calvin Miao 已提交
85

K
kechxu 已提交
86 87
// Cost evaluator

88 89
// Obstacle trajectory
DECLARE_double(lane_sequence_threshold);
90
DECLARE_double(lane_change_dist);
C
Calvin Miao 已提交
91
DECLARE_bool(enable_lane_sequence_acc);
92
DECLARE_bool(enable_trim_prediction_trajectory);
93
DECLARE_bool(enable_trajectory_validation_check);
94
DECLARE_double(distance_beyond_junction);
95
DECLARE_double(adc_trajectory_search_length);
96
DECLARE_double(virtual_lane_radius);
97
DECLARE_double(default_lateral_approach_speed);
98
DECLARE_double(centripedal_acc_threshold);
99

100 101 102 103 104
// 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);
105
DECLARE_double(default_time_to_lat_end_state);
106 107 108 109
DECLARE_double(turning_curvature_lower_bound);
DECLARE_double(turning_curvature_upper_bound);
DECLARE_double(speed_at_lower_curvature);
DECLARE_double(speed_at_upper_curvature);
110

Z
Zhang Liangliang 已提交
111
#endif  // MODULES_PREDICTION_COMMON_PREDICTION_GFLAGS_H_