Skip to content

Commit a45b151

Browse files
bug fix (#4160) (#4162)
Signed-off-by: Tianchu <tianchu.zhang0706@gmail.com> (cherry picked from commit 623434b) Co-authored-by: Chortine <107395103+Chortine@users.noreply.github.com>
1 parent 7d1213f commit a45b151

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nav2_mppi_controller/include/nav2_mppi_controller/tools/utils.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ inline size_t findPathFurthestReachedPoint(const CriticData & data)
314314

315315
for (size_t i = 0; i < dists.shape(0); i++) {
316316
min_id_by_path = 0;
317+
min_distance_by_path = std::numeric_limits<float>::max();
317318
for (size_t j = 0; j < dists.shape(1); j++) {
318319
cur_dist = dists(i, j);
319320
if (cur_dist < min_distance_by_path) {

0 commit comments

Comments
 (0)