Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(obstacle_cruise_planner): use absolute value in lateraloffset to filter on obstacles #1083

Merged
merged 3 commits into from
Jun 14, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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