prediction_gflags.cc 2.1 KB
Newer Older
D
Dong Li 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
/******************************************************************************
 * 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.
 *****************************************************************************/

#include "modules/prediction/common/prediction_gflags.h"

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

C
Calvin Miao 已提交
26
// Features
K
kechxu 已提交
27 28 29
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 已提交
30 31 32
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 已提交
33 34 35
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 已提交
36
    "The rate to approach to the reference line of lane change");
37 38 39 40 41 42 43
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 已提交
44 45
// TODO(kechxu) specify the map file here
DEFINE_string(map_file, "/path/to/map_file", "Path to map file");