Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
Signed-off-by: Zulfaqar Azmi <[email protected]>
  • Loading branch information
zulfaqar-azmi-t4 committed Nov 15, 2023
1 parent 7498969 commit 06225d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>::min(),
double max_velocity = std::numeric_limits<double>::max());
const PredictedObjects & objects, double velocity_threshold, double max_velocity);

/**
* @brief Filter objects based on their position relative to a current_pose.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<double>::max());
utils::path_safety_checker::filterObjectsByVelocity(
objects, 1.0, std::numeric_limits<double>::max());

// get backward lanes
const auto backward_length = lane_change_parameters_->backward_lane_length;
Expand Down

0 comments on commit 06225d0

Please sign in to comment.