Building skeleton generation done

This commit is contained in:
2024-11-04 04:26:43 +03:00
parent f474ada828
commit bfa2621dee
6 changed files with 891 additions and 490 deletions

View File

@@ -27,6 +27,8 @@ commands = [
[2, "Attach2"],
[3, "Left90"],
[4, "Right90"],
[5, "Forward", {"amount": "float"}]
[5, "Motion", {"amount": "float"}],
[6, "PushPosition"],
[7, "PopPosition"]
]

View File

@@ -1,149 +1,128 @@
[layouts]
entries=[ {
"children": [ 3 ],
"commands": [ [ 1, [ ] ], [ 2, [ ] ], [ 1, [ ] ], [ 2, [ ] ] ],
"children": [ 3, 4 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"floor_index": 0,
"index": 0,
"name": "v2",
"order": 0,
"type": "layout"
}, {
"children": [ 4, 5, 6 ],
"commands": [ ],
"children": [ 5, 6, 7 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"floor_index": 0,
"index": 1,
"name": "v1",
"order": 0,
"type": "layout"
}, {
"children": [ 7, 8, 9, 10, 11 ],
"commands": [ ],
"children": [ 8, 9, 10, 11, 12 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"floor_index": 0,
"index": 2,
"name": "v3",
"order": 0,
"type": "layout"
}, {
"children": [ 12 ],
"commands": [ [ 1, [ ] ], [ 2, [ ] ], [ 1, [ ] ], [ 2, [ ] ] ],
"children": [ 13, 14 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 3,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 13, 14, 15, 16 ],
"commands": [ ],
"children": [ 15, 16, 17 ],
"commands": [ [ 4, [ ] ] ],
"index": 4,
"name": "zone_1",
"order": 1,
"type": "zone",
"zone_type": 0
}, {
"children": [ 18, 19, 20, 21 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 5,
"name": "zone_1",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 17, 18, 19 ],
"commands": [ ],
"index": 5,
"children": [ 22, 23, 24 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 6,
"name": "zone_0",
"order": 1,
"type": "zone",
"zone_type": 0
}, {
"children": [ 20, 21 ],
"commands": [ ],
"index": 6,
"children": [ 25, 26 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 7,
"name": "unit_0",
"order": 3,
"type": "unit"
}, {
"children": [ 22, 23 ],
"commands": [ ],
"index": 7,
"children": [ 27, 28 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 8,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 24, 25 ],
"commands": [ ],
"index": 8,
"children": [ 29, 30 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 9,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ 26, 27 ],
"commands": [ ],
"index": 9,
"children": [ 31, 32 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 10,
"name": "unit_1",
"order": 0,
"type": "unit"
}, {
"children": [ 28, 29 ],
"commands": [ ],
"index": 10,
"children": [ 33, 34 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 11,
"name": "unit_2",
"order": 0,
"type": "unit"
}, {
"children": [ 30, 31 ],
"commands": [ ],
"index": 11,
"children": [ 35, 36 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 12,
"name": "unit_3",
"order": 0,
"type": "unit"
}, {
"children": [ 32 ],
"commands": [ [ 1, [ ] ], [ 2, [ ] ], [ 1, [ ] ] ],
"index": 12,
"name": "stair_0",
"order": 0,
"room_area": 0.0,
"room_type": 305,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 13,
"name": "living_room_0",
"order": 0,
"order": 1,
"room_area": 144.0,
"room_type": 300,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 14,
"name": "kitchen_0",
"order": 1,
"room_area": 64.0,
"order": 2,
"room_area": 16.0,
"room_type": 302,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 15,
"name": "storage_room_0",
"order": 2,
"room_area": 16.0,
"room_type": 307,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 16,
"name": "enterance_0",
"order": 3,
"room_area": 16.0,
"room_type": 304,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 17,
"name": "wc_0",
"order": 0,
"room_area": 16.0,
@@ -152,8 +131,8 @@ entries=[ {
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 18,
"commands": [ [ 5, [ ] ], [ 3, [ ] ] ],
"index": 16,
"name": "bathroom_0",
"order": 1,
"room_area": 16.0,
@@ -162,8 +141,8 @@ entries=[ {
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 19,
"commands": [ [ 5, [ ] ] ],
"index": 17,
"name": "bedroom_0",
"order": 2,
"room_area": 64.0,
@@ -171,25 +150,95 @@ entries=[ {
"type": "room",
"window": true
}, {
"children": [ 33, 34, 35 ],
"commands": [ ],
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 18,
"name": "living_room_0",
"order": 0,
"room_area": 144.0,
"room_type": 300,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 19,
"name": "kitchen_0",
"order": 1,
"room_area": 64.0,
"room_type": 302,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 20,
"name": "storage_room_0",
"order": 2,
"room_area": 16.0,
"room_type": 307,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ [ 5, [ ] ], [ 4, [ ] ] ],
"index": 21,
"name": "enterance_0",
"order": 3,
"room_area": 16.0,
"room_type": 304,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 22,
"name": "wc_0",
"order": 0,
"room_area": 16.0,
"room_type": 200,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 23,
"name": "bathroom_0",
"order": 1,
"room_area": 16.0,
"room_type": 201,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 24,
"name": "bedroom_0",
"order": 2,
"room_area": 64.0,
"room_type": 202,
"type": "room",
"window": true
}, {
"children": [ 37, 38, 39 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 25,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 36, 37 ],
"commands": [ ],
"index": 21,
"children": [ 40, 41 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 26,
"name": "zone_1",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ ],
"commands": [ ],
"index": 22,
"commands": [ [ 5, [ ] ] ],
"index": 27,
"name": "enterance_0",
"order": 0,
"room_area": 64.0,
@@ -197,9 +246,9 @@ entries=[ {
"type": "room",
"window": true
}, {
"children": [ 38 ],
"commands": [ ],
"index": 23,
"children": [ 42 ],
"commands": [ [ 5, [ ] ] ],
"index": 28,
"name": "stair_0",
"order": 0,
"room_area": 16.0,
@@ -207,81 +256,73 @@ entries=[ {
"type": "room",
"window": true
}, {
"children": [ 39, 40, 41 ],
"commands": [ ],
"index": 24,
"children": [ 43, 44, 45 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 29,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 42, 43 ],
"commands": [ ],
"index": 25,
"children": [ 46, 47 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 30,
"name": "zone_1",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 44 ],
"commands": [ ],
"index": 26,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 45, 46 ],
"commands": [ ],
"index": 27,
"name": "zone_1",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 47 ],
"commands": [ ],
"index": 28,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 48 ],
"commands": [ ],
"index": 29,
"name": "zone_1",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 49 ],
"commands": [ ],
"index": 30,
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 31,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 50 ],
"commands": [ ],
"index": 31,
"children": [ 49, 50 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 32,
"name": "zone_1",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 51 ],
"commands": [ ],
"floor_index": 0,
"index": 32,
"name": "floor_0",
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 33,
"name": "zone_0",
"order": 0,
"type": "floor"
"type": "zone",
"zone_type": 0
}, {
"children": [ 52 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 34,
"name": "zone_1",
"order": 1,
"type": "zone",
"zone_type": 1
}, {
"children": [ 53 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 35,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 54 ],
"commands": [ [ 3, [ ] ], [ 4, [ ] ] ],
"index": 36,
"name": "zone_1",
"order": 1,
"type": "zone",
"zone_type": 1
}, {
"children": [ ],
"commands": [ ],
"index": 33,
"commands": [ [ 5, [ ] ] ],
"index": 37,
"name": "bathroom_0",
"order": 0,
"room_area": 16.0,
@@ -290,18 +331,18 @@ entries=[ {
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 34,
"commands": [ [ 5, [ ] ] ],
"index": 38,
"name": "wc_0",
"order": 1,
"room_area": 4.0,
"room_area": 16.0,
"room_type": 200,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 35,
"commands": [ [ 5, [ ] ] ],
"index": 39,
"name": "bedroom_0",
"order": 2,
"room_area": 36.0,
@@ -310,8 +351,8 @@ entries=[ {
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 36,
"commands": [ [ 5, [ ] ] ],
"index": 40,
"name": "living_room_0",
"order": 0,
"room_area": 36.0,
@@ -320,8 +361,8 @@ entries=[ {
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 37,
"commands": [ [ 5, [ ] ] ],
"index": 41,
"name": "kitchen_0",
"order": 1,
"room_area": 16.0,
@@ -329,47 +370,47 @@ entries=[ {
"type": "room",
"window": true
}, {
"children": [ 52, 53 ],
"children": [ 55, 56 ],
"commands": [ ],
"floor_index": 1,
"index": 38,
"index": 42,
"name": "floor_0",
"order": 0,
"type": "floor"
}, {
"children": [ ],
"commands": [ ],
"index": 39,
"name": "bathroom_0",
"commands": [ [ 5, [ ] ] ],
"index": 43,
"name": "wc_0",
"order": 0,
"room_area": 16.0,
"room_type": 200,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ [ 5, [ ] ] ],
"index": 44,
"name": "bathroom_0",
"order": 1,
"room_area": 16.0,
"room_type": 201,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 40,
"commands": [ [ 5, [ ] ] ],
"index": 45,
"name": "bedroom_0",
"order": 0,
"order": 2,
"room_area": 64.0,
"room_type": 202,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 41,
"name": "wc_0",
"order": 0,
"room_area": 16.0,
"room_type": 200,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 42,
"commands": [ [ 5, [ ] ] ],
"index": 46,
"name": "kitchen_0",
"order": 0,
"room_area": 16.0,
@@ -378,18 +419,18 @@ entries=[ {
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 43,
"commands": [ [ 5, [ ] ] ],
"index": 47,
"name": "living_room_0",
"order": 0,
"order": 1,
"room_area": 144.0,
"room_type": 300,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 44,
"commands": [ [ 5, [ ] ] ],
"index": 48,
"name": "bathroom_0",
"order": 0,
"room_area": 16.0,
@@ -398,8 +439,8 @@ entries=[ {
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 45,
"commands": [ [ 5, [ ] ] ],
"index": 49,
"name": "kitchen_0",
"order": 0,
"room_area": 64.0,
@@ -408,18 +449,18 @@ entries=[ {
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 46,
"commands": [ [ 5, [ ] ] ],
"index": 50,
"name": "living_room_0",
"order": 0,
"order": 1,
"room_area": 64.0,
"room_type": 300,
"type": "room",
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 47,
"commands": [ [ 5, [ ] ] ],
"index": 51,
"name": "wc_0",
"order": 0,
"room_area": 16.0,
@@ -428,8 +469,8 @@ entries=[ {
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 48,
"commands": [ [ 5, [ ] ] ],
"index": 52,
"name": "living_room_0",
"order": 0,
"room_area": 64.0,
@@ -438,8 +479,8 @@ entries=[ {
"window": true
}, {
"children": [ ],
"commands": [ ],
"index": 49,
"commands": [ [ 5, [ ] ] ],
"index": 53,
"name": "bathroom_0",
"order": 0,
"room_area": 16.0,
@@ -448,8 +489,8 @@ entries=[ {
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 50,
"commands": [ [ 5, [ ] ] ],
"index": 54,
"name": "living_room_0",
"order": 0,
"room_area": 64.0,
@@ -457,47 +498,24 @@ entries=[ {
"type": "room",
"window": true
}, {
"children": [ 54, 55 ],
"commands": [ ],
"index": 51,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ 56 ],
"commands": [ ],
"index": 52,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ 57, 58 ],
"commands": [ ],
"index": 53,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ ],
"commands": [ ],
"index": 54,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ ],
"children": [ 57 ],
"commands": [ ],
"index": 55,
"name": "zone_1",
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 1
}, {
"children": [ ],
"children": [ 58, 59 ],
"commands": [ ],
"index": 56,
"name": "unit_0",
"order": 0,
"type": "unit"
}, {
"children": [ ],
"commands": [ ],
"index": 57,
"name": "storage_room_0",
"order": 0,
"room_area": 64.0,
@@ -505,17 +523,17 @@ entries=[ {
"type": "room",
"window": true
}, {
"children": [ 59 ],
"children": [ 60 ],
"commands": [ ],
"index": 57,
"index": 58,
"name": "zone_0",
"order": 0,
"type": "zone",
"zone_type": 0
}, {
"children": [ 60 ],
"children": [ 61 ],
"commands": [ ],
"index": 58,
"index": 59,
"name": "zone_1",
"order": 0,
"type": "zone",
@@ -523,20 +541,20 @@ entries=[ {
}, {
"children": [ ],
"commands": [ ],
"index": 59,
"index": 60,
"name": "wc_0",
"order": 0,
"room_area": 0.0,
"room_area": 16.0,
"room_type": 200,
"type": "room",
"window": false
}, {
"children": [ ],
"commands": [ ],
"index": 60,
"index": 61,
"name": "living_room_0",
"order": 0,
"room_area": 0.0,
"room_area": 16.0,
"room_type": 300,
"type": "room",
"window": true