/****************************************************************************** * 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 #include "modules/prediction/common/prediction_gflags.h" // System gflags DEFINE_string(prediction_module_name, "prediction", "Default prediciton module name"); DEFINE_string(prediction_conf_file, "modules/prediction/conf/prediction_conf.pb.txt", "Default conf file for prediction"); DEFINE_double(prediction_duration, 3.0, "Prediction duration (in seconds)"); DEFINE_double(prediction_freq, 0.1, "Prediction frequency (in seconds"); DEFINE_double(double_precision, 1e-6, "precision of double"); 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"); DEFINE_double(max_acc, 4.0, "Upper bound of acceleration"); DEFINE_double(min_acc, -4.0, "Lower bound of deceleration"); DEFINE_double(max_speed, 15.0, "Max speed"); 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"); 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, "The rate to approach to the reference line of lane change"); 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"); DEFINE_double(max_history_time, 7.0, "Obstacles' maximal historical time."); DEFINE_double(target_lane_gap, 2.0, "gap between two lane points."); DEFINE_double(max_lane_angle_diff, M_PI / 2.0, "Max angle difference for a candiate lane"); DEFINE_bool(enable_pedestrian_acc, false, "Enable calculating speed by acc"); DEFINE_double(coeff_mul_sigma, 2.0, "coefficient multiply standard deviation"); 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"); DEFINE_double(prediction_pedestrian_total_time, 10.0, "Total prediction time for pedestrians"); // Obstacle trajectory DEFINE_double(lane_sequence_threshold, 0.5, "Threshold for trimming lane sequence trajectories");