Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-pose-interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
purewater0901 authored Jun 14, 2022
2 parents 830ef5a + 785c8d6 commit f65af81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion planning/obstacle_cruise_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,9 @@ std::vector<TargetObstacle> ObstacleCruisePlannerNode::filterObstacles(
const double dist_from_obstacle_to_traj = [&]() {
return tier4_autoware_utils::calcLateralOffset(decimated_traj.points, object_pose.position);
}();
if (dist_from_obstacle_to_traj > obstacle_filtering_param_.rough_detection_area_expand_width) {
if (
std::fabs(dist_from_obstacle_to_traj) >
obstacle_filtering_param_.rough_detection_area_expand_width) {
RCLCPP_INFO_EXPRESSION(
get_logger(), is_showing_debug_info_,
"Ignore obstacles since it is far from the trajectory.");
Expand Down

0 comments on commit f65af81

Please sign in to comment.