Verified Commit a58dae6b authored by Sebastian Höffner's avatar Sebastian Höffner
Browse files

Enriching context with bounding boxes for elements and containers. Refactoring...

Enriching context with bounding boxes for elements and containers. Refactoring Editor/Behaviour for SceneController.
parent 8c6f2e56
[{"name":"steam_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Steam"],"components":{"transform":{"position":{"x":-0.0840557441115379,"y":0.912578999996185,"z":2.47390842437744},"orientation":{"x":-0.000711875502020121,"y":-2.74777412414551E-05,"z":0.000304955523461103,"w":0.999999821186066}}}},{"name":"lamp_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":3,"y":2.24000000953674,"z":0},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"wall_2","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-1,"y":0,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"floor_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Floor"],"components":{"transform":{"position":{"x":3.09999990463257,"y":-0.100000001490116,"z":-3.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"environment_0","is_a":["http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#PhysicalPlace"],"components":{"transform":{"position":{"x":-15,"y":-0.050000011920929,"z":-15},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"ceiling_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Ceiling"],"components":{"transform":{"position":{"x":3.09999990463257,"y":2.57999992370605,"z":-3.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"cupboard_2","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.09999990463257,"y":0,"z":2.07999992370605},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"pot_0","is_a":["http://www.ease-crc.org/ont/EASE-OBJ.owl#Pot"],"components":{}},{"name":"window_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":-0.374584019184113,"y":0.785416007041931,"z":-3.00545001029968},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"window_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":3.00545001029968,"y":0.785416007041931,"z":-2.37458395957947},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"chair_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":1.07895708084106,"y":0,"z":-1.34624290466309},"orientation":{"x":0,"y":0.0316231548786163,"z":0,"w":0.999499917030334}}}},{"name":"drawer_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Drawer"],"components":{"transform":{"position":{"x":-2.1399998664856,"y":0.555086016654968,"z":2.02631187438965},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"door_10","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.15999984741211,"y":0.1701720058918,"z":2.02631187438965},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"door_12","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-0.413687944412231,"y":0.1701720058918,"z":2.15999984741211},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"drawer_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Drawer"],"components":{"transform":{"position":{"x":1.30631196498871,"y":0.555086016654968,"z":2.1399998664856},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"door_9","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":1.30631196498871,"y":0.1701720058918,"z":2.15999984741211},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"wall_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":3,"y":0,"z":3},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"cupboard_3","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":1.36000001430511,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"sun_0","is_a":["http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Entity"],"components":{"transform":{"position":{"x":0,"y":3,"z":0},"orientation":{"x":0.22958692908287,"y":-0.251401782035828,"z":0.0615176223218441,"w":0.9382444024086}}}},{"name":"sink_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Sink","http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.07999992370605,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"chair_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":-0.00044173002243042,"y":0,"z":-1.84847187995911},"orientation":{"x":0,"y":0.999981224536896,"z":0,"w":0.00614215806126595}}}},{"name":"door_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-3.05089998245239,"y":0,"z":-2.43729996681213},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"apple_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Apple"],"components":{"transform":{"position":{"x":-1.01800000667572,"y":0.840098917484283,"z":2.6956000328064},"orientation":{"x":-6.12323426292584E-17,"y":1,"z":6.12323426292584E-17,"w":-3.74939939305299E-33}}}},{"name":"window_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":-2.37458395957947,"y":0.785416007041931,"z":-3.00545001029968},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"wall_7","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-3,"y":0,"z":-1},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"door_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.57999992370605,"y":2.32631206512451,"z":1.16631197929382},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"rack_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Rack"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":-0.0599999986588955},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"lamp_4","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":0.920000016689301,"y":2.24000000953674,"z":3},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"stove_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Stove"],"components":{"transform":{"position":{"x":0.5,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"shelf_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.21099996566772,"z":2.5},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"wall_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-3,"y":0,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"cupboard_8","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.99000000953674,"z":1.22000002861023},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"shelf_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":-0.0599999986588955},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"refrigerator_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Refrigerator"],"components":{"transform":{"position":{"x":2.22000002861023,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"door_7","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":2.11932611465454,"y":0.217418000102043,"z":2.16999983787537},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"door_6","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":2.11932611465454,"y":1.30259597301483,"z":2.16999983787537},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"door_3","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-1.16631197929382,"y":1.65368807315826,"z":2.59999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"door_2","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-0.413688004016876,"y":1.65368807315826,"z":2.59999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"wall_3","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall","http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":1,"y":0,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"cupboard_7","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-0.360000014305115,"y":1.60000002384186,"z":2.57999992370605},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"cupboard_6","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":1.22000002861023},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"rack_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Rack"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":2.5},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"cup_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Cup","http://www.ease-crc.org/ont/EASE.owl#DesignedContainer"],"components":{"transform":{"position":{"x":-2.57680010795593,"y":0.838436722755432,"z":1.73479998111725},"orientation":{"x":-1.3969840395589E-08,"y":-0.918447494506836,"z":1.11758726717426E-08,"w":-0.395542949438095}}}},{"name":"shelf_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.21099996566772,"z":-0.0599999986588955},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"kitchen_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Room"],"components":{"transform":{"position":{"x":0,"y":0,"z":0},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"lamp_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":-1,"y":2.24000000953674,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"door_8","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.02631187438965,"y":0.1701720058918,"z":2.15999984741211},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"window_4","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":3.00545001029968,"y":0.785416007041931,"z":1.62541604042053},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"counter_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Countertop"],"components":{"transform":{"position":{"x":-2.07999992370605,"y":0,"z":2.07999992370605},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"door_4","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.57999992370605,"y":1.93631196022034,"z":1.16631197929382},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"window_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":1.62541604042053,"y":0.785416007041931,"z":-3.00545001029968},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"door_5","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.57999992370605,"y":1.65368807315826,"z":2.02431201934814},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"chair_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":0.412418007850647,"y":0,"z":-1.32948207855225},"orientation":{"x":0,"y":-0.0111704673618078,"z":0,"w":0.999937653541565}}}},{"name":"lid_0","is_a":["http://www.ease-crc.org/ont/EASE-OBJ.owl#Lid"],"components":{"transform":{"position":{"x":-0.358455181121826,"y":0.84524142742157,"z":2.5877947807312},"orientation":{"x":-0.0100866016000509,"y":0.382520109415054,"z":0.0244066566228867,"w":0.923569679260254}}}},{"name":"table_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Table"],"components":{"transform":{"position":{"x":1.43400001525879,"y":0,"z":-2.04800009727478},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"chair_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":0.748000383377075,"y":0,"z":-1.85008120536804},"orientation":{"x":0,"y":0.999948978424072,"z":0,"w":0.0101014049723744}}}},{"name":"cupboard_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-0.35999995470047,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"wall_4","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":3,"y":0,"z":-1},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"shelf_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":2.5},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"door_11","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.15999984741211,"y":0.1701720058918,"z":0.413687914609909},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"cupboard_5","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":2.07800006866455},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"counter_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Countertop"],"components":{"transform":{"position":{"x":-2.09999990463257,"y":0,"z":-0.539999961853027},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"lamp_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":1,"y":2.24000000953674,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}}}},{"name":"wall_6","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-3,"y":0,"z":3},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"cupboard_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.09999990463257,"y":0,"z":0.359999924898148},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"wall_5","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":3,"y":0,"z":1},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"lamp_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":-1.64600002765656,"y":2.24000000953674,"z":3},"orientation":{"x":0,"y":0,"z":0,"w":1}}}}]
\ No newline at end of file
[{"name":"lamp_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":3,"y":2.24000000953674,"z":0},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":0,"y":0.0799999982118607,"z":-0.129600003361702},"extents":{"x":0.195374995470047,"y":0.0799999982118607,"z":0.129600003361702},"size":{"x":0.390749990940094,"y":0.159999996423721,"z":0.259200006723404}}}},{"name":"wall_2","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-1,"y":0,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.0445500016212463},"size":{"x":1,"y":1.28953194618225,"z":0.0891000032424927}}}},{"name":"floor_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Floor"],"components":{"transform":{"position":{"x":3.09999990463257,"y":-0.100000001490116,"z":-3.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.5,"y":0.025000000372529,"z":0.5},"extents":{"x":0.5,"y":0.025000000372529,"z":0.5},"size":{"x":1,"y":0.0500000007450581,"z":1}}}},{"name":"environment_0","is_a":["http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#PhysicalPlace"],"components":{"transform":{"position":{"x":-15,"y":-0.050000011920929,"z":-15},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"ceiling_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Ceiling"],"components":{"transform":{"position":{"x":3.09999990463257,"y":2.57999992370605,"z":-3.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.5,"y":0.025000000372529,"z":0.5},"extents":{"x":0.5,"y":0.025000000372529,"z":0.5},"size":{"x":1,"y":0.0500000007450581,"z":1}}}},{"name":"cupboard_2","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.09999990463257,"y":0,"z":2.07999992370605},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"extents":{"x":0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"size":{"x":0.430000007152557,"y":0.449999988079071,"z":0.449999988079071}}}},{"name":"pot_0","is_a":["http://www.ease-crc.org/ont/EASE-OBJ.owl#Pot"],"components":{"containerVolume":[{"type":"BoxCollider","center":{"x":-0.0836187750101089,"y":0.927073538303375,"z":2.47410821914673},"size":{"x":0.250516563653946,"y":0.135610461235046,"z":0.213268280029297},"extents":{"x":0.125258281826973,"y":0.0678052306175232,"z":0.106634140014648}},{"type":"BoxCollider","center":{"x":-0.0870967954397202,"y":0.92722225189209,"z":2.47238898277283},"size":{"x":0.15534320473671,"y":0.135894536972046,"z":0.263456344604492},"extents":{"x":0.0776716023683548,"y":0.0679472684860229,"z":0.131728172302246}},{"type":"BoxCollider","center":{"x":-0.0843382477760315,"y":0.92682009935379,"z":2.47415995597839},"size":{"x":0.154205322265625,"y":0.136800050735474,"z":0.263454437255859},"extents":{"x":0.0771026611328125,"y":0.0684000253677368,"z":0.13172721862793}},{"type":"BoxCollider","center":{"x":-0.0853041410446167,"y":0.926899671554565,"z":2.4724805355072},"size":{"x":0.247447192668915,"y":0.135317444801331,"z":0.213992595672607},"extents":{"x":0.123723596334457,"y":0.0676587224006653,"z":0.106996297836304}},{"type":"BoxCollider","center":{"x":-0.0844471007585526,"y":0.927876234054565,"z":2.47459387779236},"size":{"x":0.250614881515503,"y":0.134249687194824,"z":0.0863146781921387},"extents":{"x":0.125307440757751,"y":0.0671248435974121,"z":0.0431573390960693}}]}},{"name":"window_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":-0.374584019184113,"y":0.785416007041931,"z":-3.00545001029968},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":-0.187291502952576,"y":0.332057505846024,"z":0.0222750008106232},"extents":{"x":0.187291502952576,"y":0.332057505846024,"z":0.012275000102818},"size":{"x":0.374583005905151,"y":0.664115011692047,"z":0.024550000205636}}}},{"name":"window_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":3.00545001029968,"y":0.785416007041931,"z":-2.37458395957947},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.187291502952576,"y":0.332057505846024,"z":0.0222750008106232},"extents":{"x":0.187291502952576,"y":0.332057505846024,"z":0.012275000102818},"size":{"x":0.374583005905151,"y":0.664115011692047,"z":0.024550000205636}}}},{"name":"chair_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":1.07895708084106,"y":0,"z":-1.34624290466309},"orientation":{"x":0,"y":0.0316231548786163,"z":0,"w":0.999499917030334}},"bounds":{"center":{"x":-0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"extents":{"x":0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"size":{"x":0.200000002980232,"y":0.46000000834465,"z":0.200000002980232}}}},{"name":"drawer_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Drawer"],"components":{"transform":{"position":{"x":-2.1399998664856,"y":0.555086016654968,"z":2.02631187438965},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.188155993819237,"y":0.0428064987063408,"z":0.179999992251396},"extents":{"x":0.188155993819237,"y":0.0428064987063408,"z":0.200000002980232},"size":{"x":0.376311987638474,"y":0.0856129974126816,"z":0.400000005960464}}}},{"name":"door_10","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.15999984741211,"y":0.1701720058918,"z":2.02631187438965},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.188155993819237,"y":0.0962285026907921,"z":-0.00999999977648258},"extents":{"x":0.188155993819237,"y":0.0962285026907921,"z":0.0199999995529652},"size":{"x":0.376311987638474,"y":0.192457005381584,"z":0.0399999991059303}}}},{"name":"door_12","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-0.413687944412231,"y":0.1701720058918,"z":2.15999984741211},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.188155993819237,"y":0.139035001397133,"z":-0.00999999977648258},"extents":{"x":0.188155993819237,"y":0.139035001397133,"z":0.0199999995529652},"size":{"x":0.376311987638474,"y":0.278070002794266,"z":0.0399999991059303}}}},{"name":"drawer_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Drawer"],"components":{"transform":{"position":{"x":1.30631196498871,"y":0.555086016654968,"z":2.1399998664856},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.188155993819237,"y":0.0428064987063408,"z":0.179999992251396},"extents":{"x":0.188155993819237,"y":0.0428064987063408,"z":0.200000002980232},"size":{"x":0.376311987638474,"y":0.0856129974126816,"z":0.400000005960464}}}},{"name":"door_9","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":1.30631196498871,"y":0.1701720058918,"z":2.15999984741211},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.188155993819237,"y":0.0962285026907921,"z":-0.00999999977648258},"extents":{"x":0.188155993819237,"y":0.0962285026907921,"z":0.0199999995529652},"size":{"x":0.376311987638474,"y":0.192457005381584,"z":0.0399999991059303}}}},{"name":"wall_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":3,"y":0,"z":3},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.025000000372529},"size":{"x":1,"y":1.28953194618225,"z":0.0500000007450581}}}},{"name":"cupboard_3","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":1.36000001430511,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"extents":{"x":0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"size":{"x":0.430000007152557,"y":0.449999988079071,"z":0.449999988079071}}}},{"name":"sun_0","is_a":["http://www.ontologydesignpatterns.org/ont/dul/DUL.owl#Entity"],"components":{"transform":{"position":{"x":0,"y":3,"z":0},"orientation":{"x":0.22958692908287,"y":-0.251401782035828,"z":0.0615176223218441,"w":0.9382444024086}}}},{"name":"sink_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Sink","http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.07999992370605,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.215000003576279,"y":0.245000004768372,"z":0.224999994039536},"extents":{"x":0.215000003576279,"y":0.245000004768372,"z":0.224999994039536},"size":{"x":0.430000007152557,"y":0.490000009536743,"z":0.449999988079071}}}},{"name":"chair_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":-0.00044173002243042,"y":0,"z":-1.84847187995911},"orientation":{"x":0,"y":0.999981224536896,"z":0,"w":0.00614215806126595}},"bounds":{"center":{"x":-0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"extents":{"x":0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"size":{"x":0.200000002980232,"y":0.46000000834465,"z":0.200000002980232}}}},{"name":"door_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-3.05089998245239,"y":0,"z":-2.43729996681213},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.214650005102158,"y":0.490590989589691,"z":0},"extents":{"x":0.214650005102158,"y":0.490590989589691,"z":0.0566999986767769},"size":{"x":0.429300010204315,"y":0.981181979179382,"z":0.113399997353554}}}},{"name":"apple_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Apple"],"components":{"transform":{"position":{"x":-1.01800000667572,"y":0.840098917484283,"z":2.6956000328064},"orientation":{"x":-6.12323426292584E-17,"y":1,"z":6.12323426292584E-17,"w":-3.74939939305299E-33}},"bounds":{"center":{"x":0,"y":0.0953764989972115,"z":0},"extents":{"x":0.0981469973921776,"y":0.0953764989972115,"z":0.0981469973921776},"size":{"x":0.196293994784355,"y":0.190752997994423,"z":0.196293994784355}}}},{"name":"window_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":-2.37458395957947,"y":0.785416007041931,"z":-3.00545001029968},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":-0.187291502952576,"y":0.332057505846024,"z":0.0222750008106232},"extents":{"x":0.187291502952576,"y":0.332057505846024,"z":0.012275000102818},"size":{"x":0.374583005905151,"y":0.664115011692047,"z":0.024550000205636}}}},{"name":"wall_7","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-3,"y":0,"z":-1},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.0445500016212463},"size":{"x":1,"y":1.28953194618225,"z":0.0891000032424927}}}},{"name":"door_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.57999992370605,"y":2.32631206512451,"z":1.16631197929382},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.188155993819237,"y":-0.0706560015678406,"z":-0.00499999988824129},"extents":{"x":0.188155993819237,"y":0.0706560015678406,"z":0.0149999996647239},"size":{"x":0.376311987638474,"y":0.141312003135681,"z":0.0299999993294477}}}},{"name":"rack_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Rack"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":-0.0599999986588955},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.107500001788139,"y":0.194999992847443,"z":0.104999996721745},"extents":{"x":0.107500001788139,"y":0.194999992847443,"z":0.104999996721745},"size":{"x":0.215000003576279,"y":0.389999985694885,"z":0.209999993443489}}}},{"name":"lamp_4","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":0.920000016689301,"y":2.24000000953674,"z":3},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":0,"y":0.0799999982118607,"z":-0.129600003361702},"extents":{"x":0.195374995470047,"y":0.0799999982118607,"z":0.129600003361702},"size":{"x":0.390749990940094,"y":0.159999996423721,"z":0.259200006723404}}}},{"name":"stove_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Stove"],"components":{"transform":{"position":{"x":0.5,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"extents":{"x":0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"size":{"x":0.430000007152557,"y":0.449999988079071,"z":0.449999988079071}}}},{"name":"shelf_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.21099996566772,"z":2.5},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"wall_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-3,"y":0,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.0445500016212463},"size":{"x":1,"y":1.28953194618225,"z":0.0891000032424927}}}},{"name":"cupboard_8","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.99000000953674,"z":1.22000002861023},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.215000003576279,"y":0.0974999964237213,"z":0.104999996721745},"extents":{"x":0.215000003576279,"y":0.0974999964237213,"z":0.104999996721745},"size":{"x":0.430000007152557,"y":0.194999992847443,"z":0.209999993443489}}}},{"name":"shelf_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":-0.0599999986588955},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"refrigerator_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Refrigerator"],"components":{"transform":{"position":{"x":2.22000002861023,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.215000003576279,"y":0.434374004602432,"z":0.234999999403954},"extents":{"x":0.215000003576279,"y":0.434374004602432,"z":0.214999988675117},"size":{"x":0.430000007152557,"y":0.868748009204865,"z":0.429999977350235}}}},{"name":"door_7","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":2.11932611465454,"y":0.217418000102043,"z":2.16999983787537},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.188155993819237,"y":0.308288991451263,"z":0.0149999987334013},"extents":{"x":0.188155993819237,"y":0.308288991451263,"z":0.0499999970197678},"size":{"x":0.376311987638474,"y":0.616577982902527,"z":0.0999999940395355}}}},{"name":"door_6","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":2.11932611465454,"y":1.30259597301483,"z":2.16999983787537},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.188155993819237,"y":0.0948769971728325,"z":0.00500000081956387},"extents":{"x":0.188155993819237,"y":0.0948769971728325,"z":0.0399999991059303},"size":{"x":0.376311987638474,"y":0.189753994345665,"z":0.0799999982118607}}}},{"name":"door_3","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-1.16631197929382,"y":1.65368807315826,"z":2.59999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":0.0940779969096184,"y":0.168155997991562,"z":-0.00499999988824129},"extents":{"x":0.0940779969096184,"y":0.168155997991562,"z":0.0149999996647239},"size":{"x":0.188155993819237,"y":0.336311995983124,"z":0.0299999993294477}}}},{"name":"door_2","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-0.413688004016876,"y":1.65368807315826,"z":2.59999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.0940779969096184,"y":0.168155997991562,"z":-0.00499999988824129},"extents":{"x":0.0940779969096184,"y":0.168155997991562,"z":0.0149999996647239},"size":{"x":0.188155993819237,"y":0.336311995983124,"z":0.0299999993294477}}}},{"name":"wall_3","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall","http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":1,"y":0,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.0445500016212463},"size":{"x":1,"y":1.28953194618225,"z":0.0891000032424927}}}},{"name":"cupboard_7","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-0.360000014305115,"y":1.60000002384186,"z":2.57999992370605},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.215000003576279,"y":0.194999992847443,"z":0.104999996721745},"extents":{"x":0.215000003576279,"y":0.194999992847443,"z":0.104999996721745},"size":{"x":0.430000007152557,"y":0.389999985694885,"z":0.209999993443489}}}},{"name":"steam_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Steam"],"components":{"transform":{"position":{"x":-0.0840557441115379,"y":0.912578999996185,"z":2.47390842437744},"orientation":{"x":-0.000711875502020121,"y":-2.74777412414551E-05,"z":0.000304955523461103,"w":0.999999821186066}}}},{"name":"cupboard_6","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":1.22000002861023},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.215000003576279,"y":0.0974999964237213,"z":0.104999996721745},"extents":{"x":0.215000003576279,"y":0.0974999964237213,"z":0.104999996721745},"size":{"x":0.430000007152557,"y":0.194999992847443,"z":0.209999993443489}}}},{"name":"rack_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Rack"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":2.5},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.107500001788139,"y":0.194999992847443,"z":0.104999996721745},"extents":{"x":0.107500001788139,"y":0.194999992847443,"z":0.104999996721745},"size":{"x":0.215000003576279,"y":0.389999985694885,"z":0.209999993443489}}}},{"name":"cup_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Cup","http://www.ease-crc.org/ont/EASE.owl#DesignedContainer"],"components":{"transform":{"position":{"x":-2.57680010795593,"y":0.838436722755432,"z":1.73479998111725},"orientation":{"x":-1.3969840395589E-08,"y":-0.918447494506836,"z":1.11758726717426E-08,"w":-0.395542949438095}},"bounds":{"center":{"x":0,"y":0.100000001490116,"z":0.0296410024166107},"extents":{"x":0.100000001490116,"y":0.100000001490116,"z":0.116244003176689},"size":{"x":0.200000002980232,"y":0.200000002980232,"z":0.232488006353378}},"containerVolume":[{"type":"BoxCollider","center":{"x":-2.57680034637451,"y":0.902314186096191,"z":1.73480021953583},"size":{"x":0.105839252471924,"y":0.104725956916809,"z":0.104326486587524},"extents":{"x":0.0529196262359619,"y":0.0523629784584045,"z":0.0521632432937622}},{"type":"BoxCollider","center":{"x":-2.57640409469604,"y":0.902528047561646,"z":1.736492395401},"size":{"x":0.0742592811584473,"y":0.105153679847717,"z":0.100225448608398},"extents":{"x":0.0371296405792236,"y":0.0525768399238586,"z":0.0501127243041992}},{"type":"BoxCollider","center":{"x":-2.57640409469604,"y":0.902442157268524,"z":1.73649263381958},"size":{"x":0.102631092071533,"y":0.104981899261475,"z":0.0802216529846191},"extents":{"x":0.0513155460357666,"y":0.0524909496307373,"z":0.0401108264923096}}]}},{"name":"shelf_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.21099996566772,"z":-0.0599999986588955},"orientation":{"x":0,"y":0,"z":0,"w":1}}}},{"name":"kitchen_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Room","http://www.ease-crc.org/ont/EASE.owl#DesignedContainer"],"components":{"transform":{"position":{"x":0,"y":0,"z":0},"orientation":{"x":0,"y":0,"z":0,"w":1}},"containerVolume":[{"type":"BoxCollider","center":{"x":0,"y":1.28999996185303,"z":0},"size":{"x":6.19999980926514,"y":2.59999990463257,"z":6.19999980926514},"extents":{"x":3.09999990463257,"y":1.29999995231628,"z":3.09999990463257}}]}},{"name":"lamp_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":-1,"y":2.24000000953674,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":0,"y":0.0799999982118607,"z":-0.129600003361702},"extents":{"x":0.195374995470047,"y":0.0799999982118607,"z":0.129600003361702},"size":{"x":0.390749990940094,"y":0.159999996423721,"z":0.259200006723404}}}},{"name":"door_8","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.02631187438965,"y":0.1701720058918,"z":2.15999984741211},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.188155993819237,"y":0.139035001397133,"z":-0.00999999977648258},"extents":{"x":0.188155993819237,"y":0.139035001397133,"z":0.0199999995529652},"size":{"x":0.376311987638474,"y":0.278070002794266,"z":0.0399999991059303}}}},{"name":"window_4","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":3.00545001029968,"y":0.785416007041931,"z":1.62541604042053},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.187291502952576,"y":0.332057505846024,"z":0.0222750008106232},"extents":{"x":0.187291502952576,"y":0.332057505846024,"z":0.012275000102818},"size":{"x":0.374583005905151,"y":0.664115011692047,"z":0.024550000205636}}}},{"name":"counter_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Countertop"],"components":{"transform":{"position":{"x":-2.07999992370605,"y":0,"z":2.07999992370605},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.230000004172325,"y":0.224999994039536,"z":0.230000004172325},"extents":{"x":0.230000004172325,"y":0.224999994039536,"z":0.230000004172325},"size":{"x":0.46000000834465,"y":0.449999988079071,"z":0.46000000834465}}}},{"name":"door_4","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.57999992370605,"y":1.93631196022034,"z":1.16631197929382},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.188155993819237,"y":-0.0706560015678406,"z":-0.00499999988824129},"extents":{"x":0.188155993819237,"y":0.0706560015678406,"z":0.0149999996647239},"size":{"x":0.376311987638474,"y":0.141312003135681,"z":0.0299999993294477}}}},{"name":"window_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Window"],"components":{"transform":{"position":{"x":1.62541604042053,"y":0.785416007041931,"z":-3.00545001029968},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":-0.187291502952576,"y":0.332057505846024,"z":0.0222750008106232},"extents":{"x":0.187291502952576,"y":0.332057505846024,"z":0.012275000102818},"size":{"x":0.374583005905151,"y":0.664115011692047,"z":0.024550000205636}}}},{"name":"door_5","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.57999992370605,"y":1.65368807315826,"z":2.02431201934814},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.188155993819237,"y":0.168155997991562,"z":-0.00499999988824129},"extents":{"x":0.188155993819237,"y":0.168155997991562,"z":0.0149999996647239},"size":{"x":0.376311987638474,"y":0.336311995983124,"z":0.0299999993294477}}}},{"name":"chair_1","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":0.412418007850647,"y":0,"z":-1.32948207855225},"orientation":{"x":0,"y":-0.0111704673618078,"z":0,"w":0.999937653541565}},"bounds":{"center":{"x":-0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"extents":{"x":0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"size":{"x":0.200000002980232,"y":0.46000000834465,"z":0.200000002980232}}}},{"name":"lid_0","is_a":["http://www.ease-crc.org/ont/EASE-OBJ.owl#Lid"],"components":{"transform":{"position":{"x":-0.358455181121826,"y":0.84524142742157,"z":2.5877947807312},"orientation":{"x":-0.0100866016000509,"y":0.382520109415054,"z":0.0244066566228867,"w":0.923569679260254}},"bounds":{"center":{"x":0,"y":0.0592000000178814,"z":0},"extents":{"x":0.328725010156631,"y":0.0592000000178814,"z":0.312635987997055},"size":{"x":0.657450020313263,"y":0.118400000035763,"z":0.62527197599411}}}},{"name":"table_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Table"],"components":{"transform":{"position":{"x":1.43400001525879,"y":0,"z":-2.04800009727478},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.420744001865387,"y":0.163367003202438,"z":0.223686501383781},"extents":{"x":0.420744001865387,"y":0.163367003202438,"z":0.223686501383781},"size":{"x":0.841488003730774,"y":0.326734006404877,"z":0.447373002767563}}}},{"name":"chair_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Chair"],"components":{"transform":{"position":{"x":0.748000383377075,"y":0,"z":-1.85008120536804},"orientation":{"x":0,"y":0.999948978424072,"z":0,"w":0.0101014049723744}},"bounds":{"center":{"x":-0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"extents":{"x":0.100000001490116,"y":0.230000004172325,"z":0.100000001490116},"size":{"x":0.200000002980232,"y":0.46000000834465,"z":0.200000002980232}}}},{"name":"cupboard_0","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-0.35999995470047,"y":0,"z":2.09999990463257},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"extents":{"x":0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"size":{"x":0.430000007152557,"y":0.449999988079071,"z":0.449999988079071}}}},{"name":"wall_4","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":3,"y":0,"z":-1},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.025000000372529},"size":{"x":1,"y":1.28953194618225,"z":0.0500000007450581}}}},{"name":"shelf_2","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Shelf"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":2.5},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}}}},{"name":"door_11","is_a":["http://www.ease-crc.org/ont/EASE.owl#Door"],"components":{"transform":{"position":{"x":-2.15999984741211,"y":0.1701720058918,"z":0.413687914609909},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.188155993819237,"y":0.139035001397133,"z":-0.00999999977648258},"extents":{"x":0.188155993819237,"y":0.139035001397133,"z":0.0199999995529652},"size":{"x":0.376311987638474,"y":0.278070002794266,"z":0.0399999991059303}}}},{"name":"cupboard_5","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.55999994277954,"y":1.60000002384186,"z":2.07800006866455},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.215000003576279,"y":0.194999992847443,"z":0.104999996721745},"extents":{"x":0.215000003576279,"y":0.194999992847443,"z":0.104999996721745},"size":{"x":0.430000007152557,"y":0.389999985694885,"z":0.209999993443489}}}},{"name":"counter_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Countertop"],"components":{"transform":{"position":{"x":-2.09999990463257,"y":0,"z":-0.539999961853027},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":-0.224999994039536,"y":0.224999994039536,"z":0.224999994039536},"extents":{"x":0.224999994039536,"y":0.224999994039536,"z":0.224999994039536},"size":{"x":0.449999988079071,"y":0.449999988079071,"z":0.449999988079071}}}},{"name":"lamp_0","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":1,"y":2.24000000953674,"z":-3},"orientation":{"x":0,"y":1,"z":0,"w":0}},"bounds":{"center":{"x":0,"y":0.0799999982118607,"z":-0.129600003361702},"extents":{"x":0.195374995470047,"y":0.0799999982118607,"z":0.129600003361702},"size":{"x":0.390749990940094,"y":0.159999996423721,"z":0.259200006723404}}}},{"name":"wall_6","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":-3,"y":0,"z":3},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.025000000372529},"size":{"x":1,"y":1.28953194618225,"z":0.0500000007450581}}}},{"name":"cupboard_1","is_a":["http://www.ease-crc.org/ont/EASE.owl#Cupboard"],"components":{"transform":{"position":{"x":-2.09999990463257,"y":0,"z":0.359999924898148},"orientation":{"x":0,"y":-0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"extents":{"x":0.215000003576279,"y":0.224999994039536,"z":0.224999994039536},"size":{"x":0.430000007152557,"y":0.449999988079071,"z":0.449999988079071}}}},{"name":"wall_5","is_a":["http://www.ease-crc.org/ont/EASE.owl#Wall"],"components":{"transform":{"position":{"x":3,"y":0,"z":1},"orientation":{"x":0,"y":0.707106828689575,"z":0,"w":0.707106828689575}},"bounds":{"center":{"x":-0.5,"y":0.644765973091125,"z":0.025000000372529},"extents":{"x":0.5,"y":0.644765973091125,"z":0.0445500016212463},"size":{"x":1,"y":1.28953194618225,"z":0.0891000032424927}}}},{"name":"lamp_3","is_a":["http://ease-ph.glpages.informatik.uni-bremen.de/dlu/dlu/EASE-DLUext.owl#Lamp"],"components":{"transform":{"position":{"x":-1.64600002765656,"y":2.24000000953674,"z":3},"orientation":{"x":0,"y":0,"z":0,"w":1}},"bounds":{"center":{"x":0,"y":0.0799999982118607,"z":-0.129600003361702},"extents":{"x":0.195374995470047,"y":0.0799999982118607,"z":0.129600003361702},"size":{"x":0.390749990940094,"y":0.159999996423721,"z":0.259200006723404}}}}]
\ No newline at end of file
......@@ -7477,79 +7477,6 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 5fc6ba51380c1458f9ecd3a8b7030dd5, type: 3}
m_Name:
m_EditorClassIdentifier:
instructionJson: instruction.json
contextJson: context.json
semanticBehaviours:
- {fileID: 1232511662}
- {fileID: 72409653}
- {fileID: 206085099}
- {fileID: 233609476}
- {fileID: 266244855}
- {fileID: 354212941}
- {fileID: 385145545}
- {fileID: 386471116}
- {fileID: 403154016}
- {fileID: 486434704}
- {fileID: 491616699}
- {fileID: 562335846}
- {fileID: 562335848}
- {fileID: 591176980}
- {fileID: 673992305}
- {fileID: 673992307}
- {fileID: 679120270}
- {fileID: 689074821}
- {fileID: 705507997}
- {fileID: 727899287}
- {fileID: 727899291}
- {fileID: 747210191}
- {fileID: 795689513}
- {fileID: 851663884}
- {fileID: 853770464}
- {fileID: 868937600}
- {fileID: 881902528}
- {fileID: 956961677}
- {fileID: 964251524}
- {fileID: 1008622060}
- {fileID: 1024849836}
- {fileID: 1026241613}
- {fileID: 1052582938}
- {fileID: 1137338309}
- {fileID: 1139129198}
- {fileID: 1139129200}
- {fileID: 1139129202}
- {fileID: 1140816810}
- {fileID: 1140816812}
- {fileID: 1166413353}
- {fileID: 1217411874}
- {fileID: 1238782161}
- {fileID: 1307777420}
- {fileID: 1331286835}
- {fileID: 1331286837}
- {fileID: 1403195200}
- {fileID: 1425282731}
- {fileID: 1444289940}
- {fileID: 1456574796}
- {fileID: 1581413263}
- {fileID: 1656686361}
- {fileID: 1724232370}
- {fileID: 1767828230}
- {fileID: 1808417845}
- {fileID: 1845090567}
- {fileID: 1887977818}
- {fileID: 1903869702}
- {fileID: 1918559639}
- {fileID: 1928384764}
- {fileID: 1963336214}
- {fileID: 1977428286}
- {fileID: 2002183462}
- {fileID: 2012739341}
- {fileID: 2072907047}
- {fileID: 2072914415}
- {fileID: 2109312688}
- {fileID: 2125088164}
- {fileID: 2138028496}
- {fileID: 2138746744}
- {fileID: 8529134863782672057}
--- !u!4 &1309245142
Transform:
m_ObjectHideFlags: 0
......
......@@ -3,6 +3,7 @@ using UnityEditor;
using System.Linq;
using SimpleJSON;
using System.IO;
using System.Collections.Generic;
namespace dlu
{
......@@ -10,20 +11,32 @@ namespace dlu
[CustomEditor(typeof(SceneController))]
public class SceneControllerEditor : Editor
{
private bool showLabels;
private bool exportContext;
private bool showLabels = false;
public SemanticBehaviour[] semanticBehaviours;
private JSONArray sceneJson;
private JSONArray instructionJson;
public SceneControllerEditor()
{
JSONNode.VectorContainerType = JSONContainerType.Object;
JSONNode.QuaternionContainerType = JSONContainerType.Object;
}
public override void OnInspectorGUI()
{
SceneController sc = (SceneController) target;
base.DrawDefaultInspector();
this.ImportInstruction(sc);
EditorGUILayout.Space();
this.ExportContext(sc);
EditorGUILayout.Space();
this.ShowSemanticLabels(sc);
}
private void ShowSemanticLabels(SceneController sc)
......@@ -32,12 +45,12 @@ public class SceneControllerEditor : Editor
if (showLabels)
{
if (sc.semanticBehaviours == null || GUILayout.Button("Refresh list of semantic labels"))
if (this.semanticBehaviours == null || GUILayout.Button("Refresh list of semantic labels"))
{
sc.FindSemanticLabels();
FindSemanticLabels();
}
foreach (SemanticBehaviour sb in sc.semanticBehaviours)
foreach (SemanticBehaviour sb in this.semanticBehaviours)
{
string label = sb.GetComponent<InstanceIdentifier>().name;
if (sb.is_a.Count() > 0)
......@@ -53,23 +66,105 @@ public class SceneControllerEditor : Editor
private void ExportContext(SceneController sc)
{
exportContext = EditorGUILayout.BeginFoldoutHeaderGroup(exportContext, "Export context");
if (exportContext)
{
if (sceneJson == null || GUILayout.Button("Refresh scene JSON"))
string exportFile = EditorGUILayout.TextField("Export Context File", "Assets/DLU/Resources/context.json");
if (sceneJson == null)
{
sceneJson = sc.GenerateContextJSON();
sceneJson = this.GenerateContextJSON();
}
EditorGUILayout.TextArea(sceneJson.ToString());
string exportFile = EditorGUILayout.TextField("Export file", "Assets/DLU/Resources/context.json");
if (GUILayout.Button("Export to file"))
{
File.WriteAllText(exportFile, sceneJson.ToString());
}
EditorGUILayout.TextArea(sceneJson == null ? "" : sceneJson.ToString());
}
EditorGUILayout.EndFoldoutHeaderGroup();
private void ImportInstruction(SceneController sc)
{
if (sc.instruction == null || GUILayout.Button("Import instruction JSON"))
{
sc.instruction = sc.LoadInstruction(sc.importInstructionFile);
}
EditorGUILayout.TextArea(sc.instruction == null ? "" : sc.instruction.ToString());
}
public void FindSemanticLabels()
{
this.semanticBehaviours = GameObject.FindObjectsOfType<SemanticBehaviour>();
}
public JSONArray GenerateContextJSON()
{
if (this.semanticBehaviours == null)
{
FindSemanticLabels();
}
Dictionary<string, JSONObject> sceneDict = new Dictionary<string, JSONObject>();
JSONArray sceneArray = new JSONArray();
foreach (SemanticBehaviour sb in this.semanticBehaviours)
{
JSONObject jsonObject = null;
string name = sb.GetComponent<InstanceIdentifier>().name;
if (!sceneDict.ContainsKey(name))
{
jsonObject = new JSONObject();
jsonObject.Add("name", name);
jsonObject.Add("is_a", new JSONArray());
jsonObject.Add("components", new JSONObject());
sceneDict[name] = jsonObject;
sceneArray.Add(sceneDict[name]);
}
jsonObject = sceneDict[name];
jsonObject["is_a"].Add(sb.is_a);
switch (sb)
{
case Entity entity: Write(jsonObject, entity); break;
case DesignedContainer designedContainer: Write(jsonObject, designedContainer); break;
default:
Debug.LogWarning($"No Write handler for SemanticBehaviour \"{sb.GetType().Name}\"");
break;
}
}
return sceneArray;
}
private void Write(JSONObject jsonObject, Entity entity)
{
JSONObject transform = new JSONObject();
transform["position"] = entity.transform.position;
transform["orientation"] = entity.transform.rotation;
jsonObject["components"]["transform"] = transform;
MeshFilter meshFilter = entity.GetComponent<MeshFilter>();
if (meshFilter != null)
{
Mesh mesh = meshFilter.sharedMesh;
JSONObject bounds = new JSONObject();
bounds["center"] = mesh.bounds.center;
bounds["extents"] = mesh.bounds.extents;
bounds["size"] = mesh.bounds.size;
jsonObject["components"]["bounds"] = bounds;
}
}
private void Write(JSONObject jsonObject, DesignedContainer designedContainer)
{
JSONArray containment = new JSONArray();
foreach (Collider collider in designedContainer.containmentParts)
{
JSONObject part = new JSONObject();
part.Add("type", collider.GetType().Name);
part.Add("center", collider.bounds.center);
part.Add("size", collider.bounds.size);
part.Add("extents", collider.bounds.extents);
containment.Add(part);
}
jsonObject["components"]["containerVolume"] = containment;
}
}
......
using UnityEngine;
using SimpleJSON;
using System.Collections.Generic;
using System.IO;
namespace dlu
{
public class SceneController : MonoBehaviour
{
public string instructionJson = "instruction.json";
public string contextJson = "context.json";
[HideInInspector]
public SemanticBehaviour[] semanticBehaviours;
public SceneController()
{
JSONNode.VectorContainerType = JSONContainerType.Object;
JSONNode.QuaternionContainerType = JSONContainerType.Object;
}
public JSONArray instruction = null;
public string importInstructionFile = "Assets/DLU/Resources/instruction.json";
public void Start()
{
if (semanticBehaviours == null)
{
FindSemanticLabels();
}
// string jsonContent = Resources.Load<TextAsset>(instructionJson).text;
// JSONArray scene = JSON.Parse(jsonContent) as JSONArray;
// foreach (JSONObject obj in scene)
// {
// SetGameObjectState(obj);
// }
}
// private void SetGameObjectState(JSONObject sceneObject)
// {
// string name = sceneObject["name"];
// // Debug.Log($"name {name}");
// GameObject go = GameObject.Find($"Objects/{name}");
// if (go != null) {
// // Debug.Log(go);
// }
// }
public void FindSemanticLabels()
{
this.semanticBehaviours = GameObject.FindObjectsOfType<SemanticBehaviour>();
}
public JSONArray GenerateContextJSON()
{
if (this.semanticBehaviours == null)
if (this.instruction == null)
{
FindSemanticLabels();
}
Dictionary<string, JSONObject> sceneDict = new Dictionary<string, JSONObject>();
JSONArray sceneArray = new JSONArray();
foreach (SemanticBehaviour sb in this.semanticBehaviours)
{
JSONObject jsonObject = null;
string name = sb.GetComponent<InstanceIdentifier>().name;
if (!sceneDict.ContainsKey(name))
{
jsonObject = new JSONObject();
jsonObject.Add("name", name);
jsonObject.Add("is_a", new JSONArray());
jsonObject.Add("components", new JSONObject());
sceneDict[name] = jsonObject;
sceneArray.Add(sceneDict[name]);
}
jsonObject = sceneDict[name];
jsonObject["is_a"].Add(sb.is_a);
switch (sb)
{
case Entity entity: Handle(jsonObject, entity); break;
default:
Debug.LogWarning($"No Handler for SemanticBehaviour \"{sb.GetType().Name}\"");
break;
}
this.instruction = LoadInstruction(this.importInstructionFile);
}
return sceneArray;
}
private void Handle(JSONObject jsonObject, Entity entity)
public JSONArray LoadInstruction(string json)
{
JSONObject transform = new JSONObject();
transform["position"] = entity.transform.position;
transform["orientation"] = entity.transform.rotation;
jsonObject["components"]["transform"] = transform;
return JSON.Parse(File.ReadAllText(json)) as JSONArray;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment