Skip to content

Commit

Permalink
Fix NaN in Updated PathAlign (ros-navigation#3943)
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveMacenski authored Nov 6, 2023
1 parent ea1902e commit 3d14d98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nav2_mppi_controller/src/critics/path_align_critic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ void PathAlignCritic::score(CriticData & data)
}
if (num_samples > 0) {
cost[t] = summed_path_dist / num_samples;
} else {
cost[t] = 0.0f;
}
}

Expand Down

0 comments on commit 3d14d98

Please sign in to comment.