Skip to content

Commit

Permalink
limit maximum fast forward steps (#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 authored Nov 26, 2024
1 parent feb0fe6 commit ba4f106
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 ba4f106

Please sign in to comment.