prediction_gflags.cc 3.3 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

28 29
DEFINE_double(prediction_duration, 3.0, "Prediction duration (in seconds)");
DEFINE_double(prediction_freq, 0.1, "Prediction frequency (in seconds");
K
kechxu 已提交
30
DEFINE_double(double_precision, 1e-6, "precision of double");
31 32 33 34 35 36 37 38 39
DEFINE_double(max_prediction_length, 100.0,
    "Max length of prediction trajectory");

// Map
DEFINE_string(map_file, "/path/to/map_file", "Path to map file");
DEFINE_double(search_radius, 3.0, "Search radius for a candidate lane");

// Obstacle features
DEFINE_bool(enable_kf_tracking, true, "Use measurements with KF tracking");
K
kechxu 已提交
40 41
DEFINE_double(max_acc, 4.0, "Upper bound of acceleration");
DEFINE_double(min_acc, -4.0, "Lower bound of deceleration");
42
DEFINE_double(max_speed, 15.0, "Max speed");
K
kechxu 已提交
43 44 45
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 已提交
46 47 48
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 已提交
49
    "The rate to approach to the reference line of lane change");
50 51 52 53 54 55
DEFINE_int32(still_obstacle_history_length, 10,
    "Min # historical frames for still obstacles");
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 已提交
56
DEFINE_double(max_history_time, 7.0, "Obstacles' maximal historical time.");
57
DEFINE_double(target_lane_gap, 2.0, "gap between two lane points.");
K
kechxu 已提交
58 59
DEFINE_double(max_lane_angle_diff, M_PI / 2.0,
    "Max angle difference for a candiate lane");
60
DEFINE_bool(enable_pedestrian_acc, false, "Enable calculating speed by acc");
61
DEFINE_double(coeff_mul_sigma, 2.0, "coefficient multiply standard deviation");
62 63 64
DEFINE_double(pedestrian_max_speed, 10.0, "speed upper bound for pedestrian");
DEFINE_double(pedestrian_min_acc, -4.0, "minimum pedestrian acceleration");
DEFINE_double(pedestrian_max_acc, 2.0, "maximum pedestrian acceleration");
K
kechxu 已提交
65 66
DEFINE_double(prediction_pedestrian_total_time, 10.0,
    "Total prediction time for pedestrians");
67 68 69 70

// Obstacle trajectory
DEFINE_double(lane_sequence_threshold, 0.5,
    "Threshold for trimming lane sequence trajectories");