We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef2777c commit c7b5514Copy full SHA for c7b5514
planning/behavior_velocity_planner/autoware_behavior_velocity_run_out_module/src/path_utils.cpp
@@ -26,7 +26,7 @@ geometry_msgs::msg::Point findLongitudinalNearestPoint(
26
geometry_msgs::msg::Point min_dist_point{};
27
28
for (const auto & p : target_points) {
29
- const float dist = autoware::motion_utils::calcSignedArcLength(points, src_point, p);
+ const float dist = std::abs(autoware::motion_utils::calcSignedArcLength(points, src_point, p));
30
if (dist < min_dist) {
31
min_dist = dist;
32
min_dist_point = p;
0 commit comments