We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dbc2d3a commit 6765458Copy full SHA for 6765458
planning/autoware_path_generator/src/utils.cpp
@@ -399,7 +399,7 @@ std::optional<double> get_first_self_intersection_arc_length(
399
double s = 0.;
400
401
for (size_t i = 1; i < line_string.size() - 1; ++i) {
402
- if (first_self_intersection_long && i == first_self_intersection_long->idx) {
+ if (first_self_intersection_long && i == first_self_intersection_long->idx + 1) {
403
return s + first_self_intersection_long->s;
404
}
405
s += lanelet::geometry::distance2d(line_string.at(i - 1), line_string.at(i));
0 commit comments