Skip to content

Commit

Permalink
remove accidentally added code
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 Sep 25, 2023
1 parent b53cab1 commit bf679e9
Showing 1 changed file with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,15 +734,9 @@ LaneChangeTargetObjectIndices NormalLaneChange::filterObject(
}
}

const auto check_backward_polygon = [&](const auto & target_backward_polygon) {
if (
target_backward_polygon &&
boost::geometry::intersects(target_backward_polygon.value(), obj_polygon)) {
const auto lateral = tier4_autoware_utils::calcLateralDeviation(
current_pose, object.kinematics.initial_pose_with_covariance.pose.position);
return (std::abs(lateral) > common_parameters.vehicle_width);
}
return false;
const auto check_backward_polygon = [&obj_polygon](const auto & target_backward_polygon) {
return target_backward_polygon &&
boost::geometry::intersects(target_backward_polygon.value(), obj_polygon);
};

// check if the object intersects with target backward lanes
Expand Down

0 comments on commit bf679e9

Please sign in to comment.