Skip to content

Commit a45b151

Browse files
mergify[bot]Chortine
andauthoredMar 1, 2024
Signed-off-by: Tianchu <[email protected]> (cherry picked from commit 623434b) Co-authored-by: Chortine <[email protected]>
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

+1
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)
Please sign in to comment.