From 952d992ad025113de4440c29b8d2ef8c6ac56baa Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 12 Apr 2023 11:54:02 +0200 Subject: Adding a scenes field to json description and loading it properly. --- src/argaze.test/utils/environment.json | 54 ++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 26 deletions(-) (limited to 'src/argaze.test') diff --git a/src/argaze.test/utils/environment.json b/src/argaze.test/utils/environment.json index d4d6f2b..17920d8 100644 --- a/src/argaze.test/utils/environment.json +++ b/src/argaze.test/utils/environment.json @@ -42,34 +42,36 @@ "aprilTagDeglitch": 1 } }, - "TestSceneA" : { - "aruco_scene": { - "0": { - "translation": [1, 0, 0], - "rotation": [0, 0, 0] + "scenes": { + "TestSceneA" : { + "aruco_scene": { + "0": { + "translation": [1, 0, 0], + "rotation": [0, 0, 0] + }, + "1": { + "translation": [0, 1, 0], + "rotation": [0, 90, 0] + } }, - "1": { - "translation": [0, 1, 0], - "rotation": [0, 90, 0] - } + "aoi_scene": "aoi.obj", + "angle_tolerance": 1.0, + "distance_tolerance": 2.0 }, - "aoi_scene": "aoi.obj", - "angle_tolerance": 1.0, - "distance_tolerance": 2.0 - }, - "TestSceneB" : { - "aruco_scene": { - "0": { - "translation": [1, 0, 0], - "rotation": [0, 0, 0] + "TestSceneB" : { + "aruco_scene": { + "0": { + "translation": [1, 0, 0], + "rotation": [0, 0, 0] + }, + "1": { + "translation": [0, 1, 0], + "rotation": [0, 90, 0] + } }, - "1": { - "translation": [0, 1, 0], - "rotation": [0, 90, 0] - } - }, - "aoi_scene": "aoi.obj", - "angle_tolerance": 1.0, - "distance_tolerance": 2.0 + "aoi_scene": "aoi.obj", + "angle_tolerance": 1.0, + "distance_tolerance": 2.0 + } } } \ No newline at end of file -- cgit v1.1