Skip to content

Commit

Permalink
fix bug of right lane change
Browse files Browse the repository at this point in the history
Signed-off-by: Takayuki Murooka <takayuki5168@gmail.com>
  • Loading branch information
takayuki5168 committed May 19, 2022
1 parent 221b7f7 commit 720ee74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/obstacle_avoidance_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ bool isPathShapeChanged(
// calculate lateral deviations between truncated path_points and prev_path_points
for (const auto & prev_point : truncated_prev_points) {
const double dist =
tier4_autoware_utils::calcLateralOffset(truncated_points, prev_point.pose.position);
std::abs(tier4_autoware_utils::calcLateralOffset(truncated_points, prev_point.pose.position));
if (dist > max_path_shape_change_dist) {
return true;
}
Expand Down

0 comments on commit 720ee74

Please sign in to comment.