Skip to content

Commit

Permalink
limit maximum fast forward steps
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 committed Nov 25, 2024
1 parent eb805d2 commit 40de05b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glim/mapping/global_mapping_pose_graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ void GlobalMappingPoseGraph::find_loop_candidates(int current) {
const double travel_dist_avg = (submap_targets[i]->travel_dist - submap_targets[left]->travel_dist) / std::max(i - left, 1);
const int step = 0.8 * direct_dist / std::min(travel_dist_avg, 100.0);

i += step;
i += std::min(10, step);
}

continue;
Expand Down

0 comments on commit 40de05b

Please sign in to comment.