diff options
author | Théo de la Hogue | 2023-03-27 16:08:06 +0200 |
---|---|---|
committer | Théo de la Hogue | 2023-03-27 16:08:06 +0200 |
commit | 279229706fec35fa73a0c11dd1c67ebb1d59a914 (patch) | |
tree | 34cef23176ab99da64344193962aa2623c53cd01 /src/argaze.test/ArFeatures.py | |
parent | 1a4e3283623afc065bbe6b46722f468fe7ea1779 (diff) | |
download | argaze-279229706fec35fa73a0c11dd1c67ebb1d59a914.zip argaze-279229706fec35fa73a0c11dd1c67ebb1d59a914.tar.gz argaze-279229706fec35fa73a0c11dd1c67ebb1d59a914.tar.bz2 argaze-279229706fec35fa73a0c11dd1c67ebb1d59a914.tar.xz |
Improving ArEnvironment, ArScene and ArUcoScene loading.
Diffstat (limited to 'src/argaze.test/ArFeatures.py')
-rw-r--r-- | src/argaze.test/ArFeatures.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/argaze.test/ArFeatures.py b/src/argaze.test/ArFeatures.py index 8e7ff49..af8cfa8 100644 --- a/src/argaze.test/ArFeatures.py +++ b/src/argaze.test/ArFeatures.py @@ -45,13 +45,13 @@ class TestArEnvironmentClass(unittest.TestCase): # Check Aruco scene self.assertEqual(len(ar_scene.aruco_scene.places), 2) - self.assertIsNone(numpy.testing.assert_array_equal(ar_scene.aruco_scene.places['A'].translation, [1, 0, 0])) - self.assertIsNone(numpy.testing.assert_array_equal(ar_scene.aruco_scene.places['A'].rotation, [[1.,0.,0.],[0.,1.,0.],[0.,0.,1.]])) - self.assertEqual(ar_scene.aruco_scene.places['A'].marker.identifier, 0) + self.assertIsNone(numpy.testing.assert_array_equal(ar_scene.aruco_scene.places[0].translation, [1, 0, 0])) + self.assertIsNone(numpy.testing.assert_array_equal(ar_scene.aruco_scene.places[0].rotation, [[1.,0.,0.],[0.,1.,0.],[0.,0.,1.]])) + self.assertEqual(ar_scene.aruco_scene.places[0].marker.identifier, 0) - self.assertIsNone(numpy.testing.assert_array_equal(ar_scene.aruco_scene.places['B'].translation, [0, 1, 0])) - self.assertIsNone(numpy.testing.assert_array_almost_equal(ar_scene.aruco_scene.places['B'].rotation, [[0.,0.,1.],[0., 1.,0.],[-1.,0.,0.]])) - self.assertEqual(ar_scene.aruco_scene.places['B'].marker.identifier, 1) + self.assertIsNone(numpy.testing.assert_array_equal(ar_scene.aruco_scene.places[1].translation, [0, 1, 0])) + self.assertIsNone(numpy.testing.assert_array_almost_equal(ar_scene.aruco_scene.places[1].rotation, [[0.,0.,1.],[0., 1.,0.],[-1.,0.,0.]])) + self.assertEqual(ar_scene.aruco_scene.places[1].marker.identifier, 1) # Check AOI scene self.assertEqual(len(ar_scene.aoi_scene.items()), 1) |