Skip to content

Commit 3880490

Browse files
authored
feat(behavior_velocity_planner): consider jerk limit for generating pass judge line (autowarefoundation#1118)
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
1 parent ee6bdbf commit 3880490

File tree

1 file changed

+4
-2
lines changed
  • planning/behavior_velocity_planner/src/scene_module/intersection

1 file changed

+4
-2
lines changed

planning/behavior_velocity_planner/src/scene_module/intersection/util.cpp

+4-2
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,12 @@ bool generateStopLine(
169169
{
170170
/* set judge line dist */
171171
const double current_vel = planner_data->current_velocity->twist.linear.x;
172+
const double current_acc = planner_data->current_accel.get();
172173
const double max_acc = planner_data->max_stop_acceleration_threshold;
174+
const double max_jerk = planner_data->max_stop_jerk_threshold;
173175
const double delay_response_time = planner_data->delay_response_time;
174-
const double pass_judge_line_dist =
175-
planning_utils::calcJudgeLineDistWithAccLimit(current_vel, max_acc, delay_response_time);
176+
const double pass_judge_line_dist = planning_utils::calcJudgeLineDistWithJerkLimit(
177+
current_vel, current_acc, max_acc, max_jerk, delay_response_time);
176178

177179
/* set parameters */
178180
constexpr double interval = 0.2;

0 commit comments

Comments
 (0)