Skip to content

Commit 4ca5a25

Browse files
committed
adding final pose in analytic expansion to check (#4353)
1 parent cf6a8f8 commit 4ca5a25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nav2_smac_planner/src/analytic_expansion.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ typename AnalyticExpansion<NodeT>::AnalyticExpansionNodes AnalyticExpansion<Node
161161
bool failure = false;
162162

163163
// Check intermediary poses (non-goal, non-start)
164-
for (float i = 1; i < num_intervals; i++) {
164+
for (float i = 1; i <= num_intervals; i++) {
165165
node->motion_table.state_space->interpolate(from(), to(), i / num_intervals, s());
166166
reals = s.reals();
167167
// Make sure in range [0, 2PI)

0 commit comments

Comments
 (0)