diff --git a/planning/behavior_path_planner/include/behavior_path_planner/utils/path_safety_checker/objects_filtering.hpp b/planning/behavior_path_planner/include/behavior_path_planner/utils/path_safety_checker/objects_filtering.hpp index 24d054091bca4..a8b09e6c15acc 100644 --- a/planning/behavior_path_planner/include/behavior_path_planner/utils/path_safety_checker/objects_filtering.hpp +++ b/planning/behavior_path_planner/include/behavior_path_planner/utils/path_safety_checker/objects_filtering.hpp @@ -105,8 +105,7 @@ PredictedObjects filterObjectsByVelocity( * @return A new collection of objects that have been filtered according to the rules. */ PredictedObjects filterObjectsByVelocity( - const PredictedObjects & objects, double velocity_threshold = std::numeric_limits::min(), - double max_velocity = std::numeric_limits::max()); + const PredictedObjects & objects, double velocity_threshold, double max_velocity); /** * @brief Filter objects based on their position relative to a current_pose. diff --git a/planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp b/planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp index 4ec1a06b6e993..9303447cfce2c 100644 --- a/planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp +++ b/planning/behavior_path_planner/src/scene_module/lane_change/normal.cpp @@ -780,7 +780,8 @@ LaneChangeTargetObjects NormalLaneChange::getTargetObjects( auto objects = *planner_data_->dynamic_object; utils::path_safety_checker::filterObjectsByClass( objects, lane_change_parameters_->object_types_to_check); - utils::path_safety_checker::filterObjectsByVelocity(objects, 1.0, std::numeric_limits::max()); + utils::path_safety_checker::filterObjectsByVelocity( + objects, 1.0, std::numeric_limits::max()); // get backward lanes const auto backward_length = lane_change_parameters_->backward_lane_length;