diff --git a/planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/path_utils.cpp b/planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/path_utils.cpp index 2196cdec36886..8a92cb6a40804 100644 --- a/planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/path_utils.cpp +++ b/planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/path_utils.cpp @@ -26,7 +26,7 @@ geometry_msgs::msg::Point findLongitudinalNearestPoint( geometry_msgs::msg::Point min_dist_point{}; for (const auto & p : target_points) { - const float dist = autoware::motion_utils::calcSignedArcLength(points, src_point, p); + const float dist = std::abs(autoware::motion_utils::calcSignedArcLength(points, src_point, p)); if (dist < min_dist) { min_dist = dist; min_dist_point = p;