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_avoidance_planner): fix lat_dist_to_front_bound comparison #2594

Merged
Changes from all 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: 2 additions & 2 deletions planning/obstacle_avoidance_planner/src/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,10 +641,10 @@ bool isOutsideDrivableArea(
const auto left_start_point = getStartPoint(left_bound, right_bound.front());
const auto right_start_point = getStartPoint(right_bound, left_bound.front());

// ignore point in front of the front line
// ignore point behind of the front line
const std::vector<geometry_msgs::msg::Point> front_bound = {left_start_point, right_start_point};
const double lat_dist_to_front_bound = motion_utils::calcLateralOffset(front_bound, point);
if (lat_dist_to_front_bound > min_dist) {
if (lat_dist_to_front_bound < -min_dist) {
return false;
}

Expand Down