Skip to content

Commit 9c84537

Browse files
committed
Looesen regression test threshold
1 parent f764855 commit 9c84537

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

python/gtsam/tests/test_FixedLagSmootherExample.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_FixedLagSmootherExample(self):
5454

5555
i = 0
5656

57+
# regression values work for both slow and fast retract, with loose threshold
5758
ground_truth = [
5859
gtsam.Pose2(0.995821, 0.0231012, 0.0300001),
5960
gtsam.Pose2(1.49284, 0.0457247, 0.045),
@@ -114,7 +115,7 @@ def test_FixedLagSmootherExample(self):
114115
smoother_batch.update(new_factors, new_values, new_timestamps)
115116

116117
estimate = smoother_batch.calculateEstimatePose2(current_key)
117-
self.assertTrue(estimate.equals(ground_truth[i], 1e-4))
118+
self.gtsamAssertEquals(estimate, ground_truth[i], 1e-2)
118119
i += 1
119120

120121
new_timestamps.clear()

python/gtsam/tests/test_backwards_compatibility.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@ def test_FixedLagSmootherExample(self):
211211

212212
i = 0
213213

214+
# regression values work for both slow and fast retract, with loose threshold
214215
ground_truth = [
215216
Pose2(0.995821, 0.0231012, 0.0300001),
216217
Pose2(1.49284, 0.0457247, 0.045),
@@ -267,7 +268,7 @@ def test_FixedLagSmootherExample(self):
267268
smoother_batch.update(new_factors, new_values, new_timestamps)
268269

269270
estimate = smoother_batch.calculateEstimatePose2(current_key)
270-
self.assertTrue(estimate.equals(ground_truth[i], 1e-4))
271+
self.gtsamAssertEquals(estimate, ground_truth[i], 1e-2)
271272
i += 1
272273

273274
new_timestamps.clear()

0 commit comments

Comments
 (0)