Example #1
0
 def test_poses4_all_pairs(self):
     target_path = 1.0
     tol = 0.2
     id_pairs = filters.filter_pairs_by_distance(poses_4,
                                                 target_path,
                                                 tol,
                                                 all_pairs=True)
     self.assertEqual(id_pairs, [(0, 1), (0, 2), (0, 3)])
Example #2
0
 def test_poses1_wrong_target(self):
     target_path = 2.5
     tol = 0.0
     id_pairs = filters.filter_pairs_by_distance(poses_1,
                                                 target_path,
                                                 tol,
                                                 all_pairs=True)
     self.assertEqual(id_pairs, [])
Example #3
0
 def test_poses2_all_pairs_low_tolerance(self):
     target_path = 1.0
     tol = 0.001
     id_pairs = filters.filter_pairs_by_distance(poses_2,
                                                 target_path,
                                                 tol,
                                                 all_pairs=True)
     self.assertEqual(id_pairs, [(0, 3)])
Example #4
0
 def test_poses1_all_pairs(self):
     target_path = 1.0
     tol = 0.0
     id_pairs = filters.filter_pairs_by_distance(poses_1,
                                                 target_path,
                                                 tol,
                                                 all_pairs=True)
     self.assertEqual(id_pairs, [(0, 3), (2, 3)])