Skip to content

Commit d43d0ab

Browse files
fix(crosswalk): stopping besides the stop line (autowarefoundation#6015) (#1221)
* stopping besides the stop line Signed-off-by: Yuki Takagi <yuki.takagi@tier4.jp>
1 parent 26e690e commit d43d0ab

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

planning/behavior_velocity_crosswalk_module/src/scene_crosswalk.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ std::optional<StopFactor> CrosswalkModule::checkStopForCrosswalkUsers(
393393
return {};
394394
}
395395

396-
// Check if the ego should stop beyond the stop line.
396+
// Check if the ego should stop at the stop line or the other points.
397397
const bool stop_at_stop_line =
398398
dist_ego_to_stop < nearest_stop_info->second &&
399399
nearest_stop_info->second < dist_ego_to_stop + planner_param_.far_object_threshold;
@@ -404,9 +404,9 @@ std::optional<StopFactor> CrosswalkModule::checkStopForCrosswalkUsers(
404404
return createStopFactor(*default_stop_pose, stop_factor_points);
405405
}
406406
} else {
407-
// Stop beyond the stop line
408407
const auto stop_pose = calcLongitudinalOffsetPose(
409-
ego_path.points, nearest_stop_info->first, planner_param_.stop_distance_from_object);
408+
ego_path.points, nearest_stop_info->first,
409+
-base_link2front - planner_param_.stop_distance_from_object);
410410
if (stop_pose) {
411411
return createStopFactor(*stop_pose, stop_factor_points);
412412
}

0 commit comments

Comments
 (0)