Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
safijari committed Jun 25, 2024
1 parent 58be7e3 commit 600a921
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yag_slam/graph_slam.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def try_to_close_loop(self, scan):
# covar 3.0 for coarse?????
if res_coarse.response < self.min_response_coarse:
if self.verbose:
print(f"Loop closure coarse response is not good {} < {self.min_response_coarse}".format(res_coarse.response))
print(f"Loop closure coarse response is not good {res_coarse.response} < {self.min_response_coarse}")
continue

if res_coarse.covariance[0][0] > 3.0 or res_coarse.covariance[1][1] > 3.0:
Expand All @@ -234,7 +234,7 @@ def try_to_close_loop(self, scan):
res = self.seq_matcher.match_scan(tmpscan, chain, False, True)

if res.response < self.min_response_fine:
print("Loop closure fine response is not good {}".format(res.response))
print(f"Loop closure fine response is not good {res.response}")
continue

scan.corrected_pose = res.best_pose
Expand Down

0 comments on commit 600a921

Please sign in to comment.