Skip to content

Commit 323fdcf

Browse files
committed
fix simple smoother failing during final approach
Signed-off-by: rayferric <[email protected]>
1 parent 17e80d6 commit 323fdcf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_smoother/src/simple_smoother.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ bool SimpleSmoother::smooth(
106106
}
107107
}
108108

109-
if (segments_smoothed == 0) {
109+
if (segments_smoothed == 0 && path_segments.size() > 1) {
110110
throw nav2_core::FailedToSmoothPath("No segments were smoothed");
111111
}
112112

0 commit comments

Comments
 (0)