Skip to content

Commit

Permalink
move line of code out of loop
Browse files Browse the repository at this point in the history
Signed-off-by: stevedan <[email protected]>
  • Loading branch information
stevedanomodolor committed Nov 18, 2024
1 parent 9419977 commit 18dba40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nav2_smac_planner/src/analytic_expansion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,11 @@ typename AnalyticExpansion<NodeT>::NodePtr AnalyticExpansion<NodeT>::tryAnalytic
// Always run the expansion on the first run in case there is a
// trivial path to be found
if (analytic_iterations <= 0) {

// Reset the counter and try the analytic path expansion
analytic_iterations = desired_iterations;

for (auto goal_node : goals_node) {
// Reset the counter and try the analytic path expansion
analytic_iterations = desired_iterations;
AnalyticExpansionNodes analytic_nodes =
getAnalyticPath(
current_node, goal_node, getter,
Expand Down

0 comments on commit 18dba40

Please sign in to comment.