21DEFINE_int32(planning_loop_rate, 10,
"Loop rate for planning node");
24 "the number of planning history frame to keep");
25DEFINE_int32(max_frame_history_num, 1,
"The maximum history frame number");
27DEFINE_bool(enable_scenario_side_pass_multiple_parked_obstacles,
true,
28 "enable ADC to side-pass multiple parked obstacles without"
29 "worrying if the obstacles are blocked by others.");
31DEFINE_bool(enable_force_pull_over_open_space_parking_test,
false,
32 "enable force_pull_over_open_space_parking_test");
35 traffic_rule_config_filename,
36 "modules/planning/planning_component/conf/traffic_rule_config.pb.txt",
37 "Traffic rule config filename");
40 "/apollo/modules/planning/planning_component/conf/"
41 "qp_spline_smoother_config.pb.txt",
42 "The configuration file for qp_spline smoother");
45 "modules/planning/planning_base/data/garage.csv",
46 "Loop rate for planning node");
49 "The number of points to be included in RTK trajectory "
50 "after the matched point");
53 "The time resolution of output trajectory for rtk planner.");
56 "modules/planning/planning_component/conf/"
57 "public_road_planner_config.pb.txt",
58 "The configuration for planner.");
60DEFINE_bool(publish_estop,
false,
"publish estop decision in planning");
61DEFINE_bool(enable_trajectory_stitcher,
true,
"enable stitching trajectory");
64 "Enable stitching reference line, which can reducing computing "
65 "time and improve stability");
67 "The step size when extending reference line.");
69 "The overlap distance with the existing reference line when "
70 "stitching the existing reference line");
73 "enable smooth the map reference line");
76 "change lane strategy has higher priority, always use a valid "
77 "change lane path if such path exists");
79 "meters. If the change lane target has longer length than this "
80 "threshold, it can shortcut the default lane.");
83 "Enable reference line provider thread.");
86 "Default reference line width");
89 "Maximum position difference between the smoothed and the raw "
93 "Extended length of reference line endpoint");
96 "Maximum speed (m/s) in planning.");
102 trajectory_time_min_interval, 0.02,
103 "(seconds) Trajectory time interval when publish. The is the min value.");
105 trajectory_time_max_interval, 0.1,
106 "(seconds) Trajectory time interval when publish. The is the max value.");
108 trajectory_time_high_density_period, 1.0,
109 "(seconds) Keep high density in the next this amount of seconds. ");
112 "Enable sanity check for planning trajectory.");
118 "The lowest longitudinal acceleration allowed.");
120 "The highest longitudinal acceleration allowed.");
122 "Bound of lateral acceleration; symmetric for left and right");
125 "The lower bound of longitudinal jerk.");
127 "The upper bound of longitudinal jerk.");
129 "Bound of lateral jerk; symmetric for left and right");
139 "minimum l-distance to nudge a static obstacle (meters)");
141 "minimum l-distance to nudge a non-static obstacle (meters)");
143 "If an obstacle's lateral distance is further away than this "
144 "distance, ignore it");
146 "max stop distance from in-lane obstacle (meters)");
148 "min stop distance from in-lane obstacle (meters)");
150 "min follow distance for vehicles/bicycles/moving objects");
152 "min yield distance for vehicles/moving objects "
153 "other than pedestrians/bicycles");
155 "time buffer in second to calculate the following distance.");
157 "traffic light signal info read expire time in sec");
159 "obstacle id for converting destination to an obstacle");
161 "if the distance between destination and ADC is less than this,"
162 " it is considered to reach destination");
164 "check adc whether has passed destination");
166 "check adc whether has passed reference line end");
168 "virtual stop wall length (meters)");
170 "virtual stop wall height (meters)");
174 "skip all path tasks and use trimmed previous path");
176 "obstacle lateral buffer (meters) for deciding path boundaries");
178 "obstacle longitudinal start buffer (meters) for deciding "
181 "obstacle longitudinal end buffer (meters) for deciding "
184 "obstacle longitudinal ignore buffer (meters) for deciding "
185 "backside obstacles");
187 "The speed threshold to decide whether an obstacle is static "
193 "enable align prediction data based planning time");
200 turn_signal_distance, 100.00,
201 "In meters. If there is a turn within this distance, use turn signal");
204 "number of output trajectory points for debugging");
208 "The deceleration to generate slowdown profile. unit: m/s^2.");
211 "Distance to speed fallback. unit: m.");
214 "use multiple thread to add obstacles.");
220 "Trajectory time resolution in planning");
222 "Trajectory space resolution in planning");
224 "Longitudinal horizon for speed decision making (meter)");
226 "The number of velocity samples in end condition sampler.");
228 "If generate backup trajectory when planning fail");
230 "Default cost of backup trajectory");
232 "Minimal sampling gap for velocity");
234 "The longitudinal buffer to keep distance to other vehicles");
236 "The lateral buffer to keep distance to other vehicles");
238 "The number of sample points for each timestamp to follow");
241DEFINE_double(weight_lon_objective, 10.0,
"Weight of longitudinal travel cost");
244 "Weight of longitudinal collision cost");
248 "Weight of centripetal acceleration");
250 "The cost of planning on non-priority reference line.");
252 "Weight of same side lateral offset cost");
254 "Weight of opposite side lateral offset cost");
255DEFINE_double(weight_dist_travelled, 10.0,
"Weight of travelled distance cost");
259 "Longitudinal collision buffer for yield");
261 "Longitudinal collision buffer for overtake");
263 "The standard deviation of longitudinal collision cost function");
265 "Default longitudinal buffer to sample path-time points.");
267 "Minimal time density to search sample points.");
269 "Factor for comfort acceleration.");
271 "Minimal time parameter in polynomials.");
273 "The buffer before the stop s to check trajectories.");
276 "whether using optimization for lateral trajectory generation");
278 "weight for lateral offset "
279 "in lateral trajectory optimization");
281 "weight for lateral derivative "
282 "in lateral trajectory optimization");
284 "weight for lateral second order derivative "
285 "in lateral trajectory optimization");
287 "weight for lateral third order derivative "
288 "in lateral trajectory optimization");
290 weight_lateral_obstacle_distance, 0.0,
291 "weight for lateral obstacle distance in lateral trajectory optimization");
293 "the maximal allowance for lateral third order derivative");
295 "The maximal s for lateral optimization.");
297 "The default delta s for lateral optimization.");
298DEFINE_double(bound_buffer, 0.1,
"buffer to boundary for lateral optimization");
299DEFINE_double(nudge_buffer, 0.3,
"buffer to nudge for lateral optimization");
303 "fallback trajectory unit time in seconds");
306 "the speed limit when passing a speed bump, m/s. The default "
307 "speed limit is 10 mph.");
309 "default speed limit (m/s) for city road. 35 mph.");
311 "default speed limit (m/s) for highway. 65 mph.");
315 "To control whether to enable planning pad message.");
319 "/apollo/modules/planning/planning_component/conf/"
320 "planner_open_space_config.pb.txt",
321 "The open space planner configuration file");
324 "whether or not enable dual variable warm start ");
327 enable_smoother_failsafe,
false,
328 "whether to use warm start result as final output when smoother fails");
331 "Whether use s-curve (piecewise_jerk) for smoothing Hybrid Astar "
332 "speed/acceleration.");
335 use_iterative_anchoring_smoother,
false,
336 "Whether use iterative_anchoring_smoother for open space planning ");
339 enable_parallel_trajectory_smoothing,
false,
340 "Whether to partition the trajectory first and do smoothing in parallel");
343 "Run time limit for OSQP in seconds.");
345 "True to turn on OSQP verbose debug output in log.");
349 "True to enable record debug info in chart format");
351 "True to enable print curve info into log");
354 default_front_clear_distance, 300.0,
355 "default front clear distance value in case there is no obstacle around.");
357DEFINE_bool(enable_rss_info,
true,
"enable rss_info in trajectory_pb");
360 enable_planning_smoother,
false,
361 "True to enable planning smoother among different planning cycles.");
363 "(unit: meter) for ADC stop, if it is close to the stop point "
364 "within this threshold, current planning will be smoothed.");
367 "True to enable hybrid a* parallel implementation.");
369DEFINE_double(message_latency_threshold, 0.02,
"Threshold for message delay");
372 "preserved points number in trajectory stitching");
375 "(unit: meter) for side pass driving width l buffer");
378 "True to use st_drivable boundary in speed planning");
381 "If using front axe center in path planning, the path can be "
385 "offline learning. read record files and dump learning_data");
386DEFINE_string(planning_data_dir,
"/apollo/modules/planning/planning_base/data/",
387 "Prefix of files to store feature data");
389 "a list of source files or directories for offline mode. "
390 "The items need to be separated by colon ':'. ");
392 "time sec (second) of history trajectory points for a obstacle");
394 "number of learning_data_frame to write out in one data file.");
396 "/apollo/modules/planning/planning_component/conf/"
397 "planning_semantic_map_config.pb.txt",
398 "config file for renderer singleton");
401 "minimun past history points length for trainsition from "
402 "rule-based planning to learning-based planning");
406 "The distance along s direction.");
408DEFINE_double(num_extra_tail_bound_point, 20,
"The extra tail point number.");
410 "Whether to pull over at destination");
412 "The lateral distance threshold of replan");
414 "The longitudinal distance threshold of replan");
417 "checks collision time step for trajectory");
420 "at the distance, the obstacle goes around left or right"
421 "consider ego and obstacle position");
424 "When the speed optimization fails,"
425 "relax the speed upper bound constraint and try to optimize again");
428 "Detect vehicle collisions with map projection obstacles");
431 near_stop_speed, 0.5,
432 "Set deceleration as near_stop_deceleration when vehicle speed is smaller "
433 "than this value before stopping so that control can keep up.");
436 near_stop_deceleration, -1.0,
437 "Set deceleration as near_stop_deceleration when vehicle deceleration is "
438 "smaller than this value before stopping so that control can keep up.");
441 reference_line_max_forward_heading_diff, 2.5,
442 "max angle difference between the forward reference line and ego heading");
445 reference_line_max_backward_heading_diff, 3.1415926536,
446 "max angle difference between the backward reference line and ego heading");
452 "enable_obstacle_potential_field");
455 "open space sample time for speed planning");
458 "weight of open space acceleration in the cost function");
461 "weight of open space jerk in the cost function");
464 "weight of open space kappa in the cost function");
467 "weight of open space reference s in the cost function");
470 "weight of open space reference v in the cost function");
473 "the max forward velocity for open space planning");
476 "the max reverse velocity for open space planning");
479 "the max forward acceleration for open space planning");
482 "the max reverse acceleration for open space planning");
484DEFINE_double(open_space_max_jerk, 4.0,
"the max jerk for open space planning");
487DEFINE_bool(enable_nudge_decider,
true,
"Enable use nudge decider");
489 "Max nudge check distance in kane keep path boundary decider");
491 "Max nudge check distance in lane change path boundary decider");
493 "Distance threshold to destination in path trim operation");
498 "Disable perception edge info");
500 "Enable add curvature buffer in edge follow map");
502 "Enable smooth edge follow buffer");
504 "Enable print edge follow log");
507 "normal look forward short distance in reference line");
509 "normal look forward long distance in reference line");
511 "normal look backward distance in reference line");
513 "edge follow look forward short distance in reference line");
515 "edge follow look forward long distance in reference line");
517 "edge follow look backward distance in reference line");
524 "use arc type path when in zone cover stage");
525DEFINE_bool(change_end_pose,
false,
"change end pose when in zone cover stage");
527 "calculate next trajectory when in zone cover stage");
529 "enable non drivable roi when in zone cover stage");
533 "the lateral threshold to relaxing the solution space");
535DEFINE_double(relax_path_s_threshold, 5.0,
"relax path boundary s threshold");
537 "enable use obstacle corner constraint");
538DEFINE_bool(enable_expand_obs_corner,
false,
"enable expand_obs_corner");
540 "expand obs corner lon buffer");
542 "enable use adc vertex constraint");
544 "obstacle longitudinal end buffer (meters) for deciding "
548 "enable replan with control interactive masg");
551 "remain the nudge range in frames");
553 "waiting time for pedestrians");
556 "shift the reference to avoid obstacle for path");
559 "uudge lateral check threshold for the ego's driving status");
DEFINE_uint64(rtk_trajectory_forward, 800, "The number of points to be included in RTK trajectory " "after the matched point")
DEFINE_double(rtk_trajectory_resolution, 0.01, "The time resolution of output trajectory for rtk planner.")
DEFINE_string(traffic_rule_config_filename, "modules/planning/planning_component/conf/traffic_rule_config.pb.txt", "Traffic rule config filename")
DEFINE_bool(enable_scenario_side_pass_multiple_parked_obstacles, true, "enable ADC to side-pass multiple parked obstacles without" "worrying if the obstacles are blocked by others.")
DEFINE_int32(planning_loop_rate, 10, "Loop rate for planning node")