planning_gflags.cc 6.6 KB
Newer Older
D
Dong Li 已提交
1 2 3 4 5 6 7 8 9 10
/******************************************************************************
 * 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
11 12
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
D
Dong Li 已提交
13 14 15 16 17 18 19 20 21 22
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *****************************************************************************/

#include "modules/planning/common/planning_gflags.h"
DEFINE_int32(planning_loop_rate, 5, "Loop rate for planning node");

DEFINE_string(rtk_trajectory_filename, "modules/planning/data/garage.csv",
              "Loop rate for planning node");

23 24
DEFINE_uint64(backward_trajectory_point_num, 10,
              "The number of points to be included in planning trajectory "
D
Dong Li 已提交
25 26 27 28 29 30
              "before the matched point");

DEFINE_uint64(rtk_trajectory_forward, 800,
              "The number of points to be included in RTK trajectory "
              "after the matched point");

D
Dong Li 已提交
31 32
DEFINE_double(trajectory_resolution, 0.01,
              "The time resolution of "
D
Dong Li 已提交
33
              "output trajectory.");
34

35
DEFINE_double(
36
    look_backward_distance, 10,
37 38 39 40 41
    "look backward this distance when creating reference line from routing");

DEFINE_double(
    look_forward_distance, 70,
    "look forward this distance when creating reference line from routing");
42 43
DEFINE_bool(enable_smooth_reference_line, true,
            "enable smooth the map reference line");
44

45
DEFINE_int32(max_history_frame_num, 5, "The maximum history frame number");
46

47 48 49 50
DEFINE_double(max_collision_distance, 0.1,
              "considered as collision if distance (meters) is smaller than or "
              "equal to this (meters)");

C
Calvin Miao 已提交
51 52
DEFINE_double(replan_distance_threshold, 5.0,
              "The distance threshold of replan");
53

54 55 56
DEFINE_double(default_reference_line_width, 4.0,
              "Default reference line width");

57
DEFINE_double(planning_upper_speed_limit, 10.0, "Maximum speed in planning.");
58

59 60 61
DEFINE_double(planning_distance, 100, "Planning distance");

DEFINE_double(trajectory_time_length, 8.0, "Trajectory time length");
C
Calvin Miao 已提交
62 63 64 65
DEFINE_double(trajectory_time_resolution, 0.1,
              "Trajectory time resolution in planning");
DEFINE_double(output_trajectory_time_resolution, 0.05,
              "Trajectory time resolution when publish");
66

67
DEFINE_double(speed_lower_bound, 0.0, "The lowest speed allowed.");
68 69 70
DEFINE_double(speed_upper_bound, 40.0, "The highest speed allowed.");

DEFINE_double(longitudinal_acceleration_lower_bound, -4.5,
C
Calvin Miao 已提交
71
              "The lowest longitudinal acceleration allowed.");
72
DEFINE_double(longitudinal_acceleration_upper_bound, 4.0,
C
Calvin Miao 已提交
73
              "The highest longitudinal acceleration allowed.");
74

C
Calvin Miao 已提交
75 76 77 78
DEFINE_double(lateral_acceleration_bound, 4.5,
              "Bound of lateral acceleration; symmetric for left and right");
DEFINE_double(lateral_jerk_bound, 4.0,
              "Bound of lateral jerk; symmetric for left and right");
79

C
Calvin Miao 已提交
80 81 82 83
DEFINE_double(longitudinal_jerk_lower_bound, -4.0,
              "The lower bound of longitudinal jerk.");
DEFINE_double(longitudinal_jerk_upper_bound, 4.0,
              "The upper bound of longitudinal jerk.");
84

85 86
DEFINE_double(kappa_bound, 0.23, "The bound for vehicle curvature");

87 88 89 90
// ST Boundary
DEFINE_double(st_max_s, 80, "the maximum s of st boundary");
DEFINE_double(st_max_t, 10, "the maximum t of st boundary");

L
liyun 已提交
91
// Decision Part
D
Dong Li 已提交
92 93 94
DEFINE_double(static_obstacle_speed_threshold, 1.0,
              "obstacles are considered as static obstacle if its speed is "
              "less than this value (m/s)");
95
DEFINE_bool(enable_nudge_decision, false, "enable nudge decision");
T
Tao Jiaming 已提交
96
DEFINE_double(static_decision_ignore_s_range, 3.0,
L
luoqi06 已提交
97
              "threshold for judging nudge in dp path computing decision");
98
DEFINE_double(static_decision_nudge_l_buffer, 0.5, "l buffer for nudge");
J
Jiangtao Hu 已提交
99
DEFINE_double(stop_distance_obstacle, 10.0,
T
Tao Jiaming 已提交
100
              "stop distance from in-lane obstacle (meters)");
101 102
DEFINE_double(stop_distance_destination, 3.0,
              "stop distance from destination line");
103 104
DEFINE_double(min_driving_width, 2.5,
              "minimum road width(meters) for adc to drive through");
T
Tao Jiaming 已提交
105 106
DEFINE_double(nudge_distance_obstacle, 0.3,
              "minimum distance to nudge a obstacle (meters)");
107
DEFINE_double(follow_min_distance, 10,
T
Tao Jiaming 已提交
108
              "min follow distance for vehicles/bicycles/moving objects");
T
Tao Jiaming 已提交
109 110
DEFINE_double(stop_line_min_distance, 0.0,
              "min distance (meters) to stop line for a valid stop");
111

T
Tao Jiaming 已提交
112 113
DEFINE_string(destination_obstacle_id, "DEST",
              "obstacle id for converting destination to an obstacle");
114
DEFINE_int32(virtual_obstacle_perception_id, -1,
D
Dong Li 已提交
115
             "virtual obstacle perception id(a negative int)");
A
Aaron Xiao 已提交
116 117
DEFINE_double(virtual_stop_wall_length, 0.1,
              "virtual stop wall length (meters)");
T
Tao Jiaming 已提交
118
DEFINE_double(virtual_stop_wall_width, 3.7, "virtual stop wall width (meters)");
A
Aaron Xiao 已提交
119 120
DEFINE_double(virtual_stop_wall_height, 2.0,
              "virtual stop wall height (meters)");
L
liyun 已提交
121

122 123
// Prediction Part
DEFINE_double(prediction_total_time, 5.0, "Total prediction time");
124 125
DEFINE_bool(align_prediction_time, true,
            "enable align prediction data based planning time");
126 127

// Trajectory
S
siyangy 已提交
128 129
DEFINE_bool(enable_rule_layer, true,
            "enable rule for trajectory before model computation");
130

131
// Traffic decision
132

D
Dong Li 已提交
133 134 135 136
DEFINE_string(planning_config_file,
              "modules/planning/conf/planning_config.pb.txt",
              "planning config file");

137 138
DEFINE_int32(trajectory_point_num_for_debug, 10,
             "number of output trajectory points for debugging");
D
Dong Li 已提交
139

140 141
DEFINE_double(decision_valid_stop_range, 0.5,
              "The valid stop range in decision.");
142 143
DEFINE_bool(enable_record_debug, true,
            "True to enable record debug into debug protobuf.");
Z
Zhang Liangliang 已提交
144
DEFINE_bool(enable_prediction, true, "True to enable prediction input.");
145 146 147 148

// QpSt optimizer
DEFINE_bool(enable_slowdown_profile_generator, true,
            "True to enable slowdown speed profile generator.");
149
DEFINE_double(slowdown_speed_threshold, 8.0,
150 151
              "Only generator slowdown profile when adc speed is lower than "
              "this threshold. unit : m/s.");
152
DEFINE_double(slowdown_profile_deceleration, -1.0,
153
              "The deceleration to generate slowdown profile. unit: m/s^2.");
154
DEFINE_double(qp_st_low_velocity_threshold, 0.02,
155
              "The low velocity threshold for control usage. unit: m/s.");