prediction_gflags.cc 2.6 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.
 *****************************************************************************/

K
kechxu 已提交
17 18
#include <cmath>

D
Dong Li 已提交
19 20 21 22
#include "modules/prediction/common/prediction_gflags.h"

// System gflags
DEFINE_string(prediction_module_name, "prediction",
C
Calvin Miao 已提交
23
    "Default prediciton module name");
C
Calvin Miao 已提交
24 25
DEFINE_string(prediction_conf_file,
    "modules/prediction/conf/prediction_conf.pb.txt",
C
Calvin Miao 已提交
26
    "Default conf file for prediction");
K
kechxu 已提交
27

C
Calvin Miao 已提交
28
// Features
K
kechxu 已提交
29 30 31
DEFINE_double(double_precision, 1e-6, "precision of double");
DEFINE_double(max_acc, 4.0, "Upper bound of acceleration");
DEFINE_double(min_acc, -4.0, "Lower bound of deceleration");
K
kechxu 已提交
32 33 34
DEFINE_double(q_var, 0.01, "Processing noise covariance");
DEFINE_double(r_var, 0.25, "Measurement noise covariance");
DEFINE_double(p_var, 0.1, "Error covariance");
K
kechxu 已提交
35 36 37
DEFINE_double(go_approach_rate, 0.995,
    "The rate to approach to the reference line of going straight");
DEFINE_double(cutin_approach_rate, 0.9,
C
Calvin Miao 已提交
38
    "The rate to approach to the reference line of lane change");
39 40 41 42 43 44 45
DEFINE_int32(still_obstacle_history_length, 10,
    "Min # historical frames for still obstacles");
DEFINE_bool(enable_kf_tracking, true, "Use measurements with KF tracking");
DEFINE_double(still_obstacle_speed_threshold, 1.0,
    "Speed threshold for still obstacles");
DEFINE_double(still_obstacle_position_std, 1.0,
    "Position standard deviation for still obstacles");
K
kechxu 已提交
46 47
// TODO(kechxu) specify the map file here
DEFINE_string(map_file, "/path/to/map_file", "Path to map file");
48
DEFINE_double(prediction_duration, 1.0, "Prediction duration (in seconds)");
49
DEFINE_double(search_radius, 3.0, "Search radius for a candidate lane");
K
kechxu 已提交
50
DEFINE_double(max_history_time, 7.0, "Obstacles' maximal historical time.");
51 52
DEFINE_double(max_prediction_length, 100.0,
    "Max length of prediction trajectory");
53
DEFINE_double(target_lane_gap, 2.0, "gap between two lane points.");
K
kechxu 已提交
54 55
DEFINE_double(max_lane_angle_diff, M_PI / 2.0,
    "Max angle difference for a candiate lane");