Pushing the code for Automatic AP placement
This commit is contained in:
203
floor_plans/finalmap.json
Normal file
203
floor_plans/finalmap.json
Normal file
@@ -0,0 +1,203 @@
|
||||
{
|
||||
"building": {
|
||||
"width": 40.0,
|
||||
"height": 3.0,
|
||||
"length": 50.0,
|
||||
"resolution": 0.2
|
||||
},
|
||||
"target_coverage": 0.9,
|
||||
"propagation_model": "fast_ray_tracing",
|
||||
"placement_strategy": "material_aware",
|
||||
"quick_mode": false,
|
||||
"ap_mode": "manual",
|
||||
"scale": {
|
||||
"pixel_to_meter": 0.0684257329142735
|
||||
},
|
||||
"rois": [
|
||||
{
|
||||
"points": [
|
||||
[
|
||||
16.01162150194,
|
||||
29.55991661896615
|
||||
],
|
||||
[
|
||||
35.44452964959367,
|
||||
29.696768084794694
|
||||
],
|
||||
[
|
||||
35.3761039166794,
|
||||
21.622531600910424
|
||||
],
|
||||
[
|
||||
48.71912183496273,
|
||||
21.6909573338247
|
||||
],
|
||||
[
|
||||
48.71912183496273,
|
||||
33.66546059382256
|
||||
],
|
||||
[
|
||||
16.08004723485427,
|
||||
33.66546059382256
|
||||
],
|
||||
[
|
||||
16.08004723485427,
|
||||
29.76519381770897
|
||||
]
|
||||
],
|
||||
"lengths_m": [
|
||||
19.433390013037968,
|
||||
8.074526418224954,
|
||||
13.343193367727041,
|
||||
11.974503259997862,
|
||||
32.63907460010846,
|
||||
3.900266776113589,
|
||||
0.21638116657545525
|
||||
]
|
||||
}
|
||||
],
|
||||
"boundaries": [],
|
||||
"regions": [
|
||||
{
|
||||
"name": "room1",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
36.06036124582213,
|
||||
22.443640395881705,
|
||||
45.98209251839179,
|
||||
26.82288730239521
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
16.42217589942564,
|
||||
30.38102541393743,
|
||||
22.375214662967434,
|
||||
32.84435179885128
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "fg",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
31.475837140565808,
|
||||
30.654728345594524,
|
||||
35.44452964959367,
|
||||
32.775926065937
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
47.55588437542008,
|
||||
26.754461569480934,
|
||||
47.7611615741629,
|
||||
32.50222313427991
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
38.66053909656453,
|
||||
28.122976227766404,
|
||||
43.24506320182085,
|
||||
31.88639153805145
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "circle",
|
||||
"coords": [
|
||||
47.14532997793444,
|
||||
23.606877855424354,
|
||||
0.5642530486317051
|
||||
]
|
||||
}
|
||||
],
|
||||
"materials": [],
|
||||
"aps": [
|
||||
{
|
||||
"x": 38.18155896616461,
|
||||
"y": 25.0438182466241,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 19.501333880567945,
|
||||
"y": 31.7495400722229,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 43.99774626387786,
|
||||
"y": 24.770115314967004,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 40.85016254982128,
|
||||
"y": 30.038896749366064,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 33.66546059382256,
|
||||
"y": 32.02324300388,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
floor_plans/floorplan.jpg
Normal file
BIN
floor_plans/floorplan.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 30 KiB |
161
floor_plans/floorplan.json
Normal file
161
floor_plans/floorplan.json
Normal file
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"building": {
|
||||
"width": 40.0,
|
||||
"height": 3.0,
|
||||
"length": 50.0,
|
||||
"resolution": 0.2
|
||||
},
|
||||
"target_coverage": 0.9,
|
||||
"propagation_model": "fast_ray_tracing",
|
||||
"placement_strategy": "material_aware",
|
||||
"quick_mode": false,
|
||||
"ap_mode": "manual",
|
||||
"scale": {
|
||||
"pixel_to_meter": 0.06412234498911869
|
||||
},
|
||||
"rois": [
|
||||
{
|
||||
"points": [
|
||||
[
|
||||
15.004628727453772,
|
||||
27.76497538028839
|
||||
],
|
||||
[
|
||||
33.40774173933084,
|
||||
27.95734241525575
|
||||
],
|
||||
[
|
||||
33.40774173933084,
|
||||
20.45502805152886
|
||||
],
|
||||
[
|
||||
45.71923197724163,
|
||||
20.390905706539744
|
||||
],
|
||||
[
|
||||
45.59098728726339,
|
||||
31.419949044668158
|
||||
],
|
||||
[
|
||||
14.940506382464655,
|
||||
31.35582669967904
|
||||
],
|
||||
[
|
||||
15.068751072442891,
|
||||
27.70085303529927
|
||||
]
|
||||
],
|
||||
"lengths_m": [
|
||||
18.40411838703666,
|
||||
7.502314363726886,
|
||||
12.311657222051771,
|
||||
11.029788921589677,
|
||||
30.65054797830797,
|
||||
3.6572228791553387,
|
||||
0.09068268993477813
|
||||
]
|
||||
}
|
||||
],
|
||||
"boundaries": [],
|
||||
"regions": [
|
||||
{
|
||||
"name": "a",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "circle",
|
||||
"coords": [
|
||||
2.3683248730964475,
|
||||
1.4884263959390867,
|
||||
0.10674529480665189
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ax",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
1.1265989847715738,
|
||||
1.8790355329949244,
|
||||
2.076395939086295,
|
||||
1.9324873096446706
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "ds",
|
||||
"type": "office",
|
||||
"material": "brick",
|
||||
"thickness_m": 0.2,
|
||||
"room": true,
|
||||
"shape": "rectangle",
|
||||
"coords": [
|
||||
2.6643654822335034,
|
||||
1.430862944162437,
|
||||
2.6602538071065998,
|
||||
1.4103045685279192
|
||||
]
|
||||
}
|
||||
],
|
||||
"materials": [],
|
||||
"aps": [
|
||||
{
|
||||
"x": 18.787847081811776,
|
||||
"y": 30.650480904798734,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 34.3054545691785,
|
||||
"y": 25.328326270701883,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 20.326783361550625,
|
||||
"y": 31.035214974733446,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 41.03830079303596,
|
||||
"y": 27.059629585408086,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
},
|
||||
{
|
||||
"x": 36.93447071373237,
|
||||
"y": 23.276411231050083,
|
||||
"z": 2.7,
|
||||
"tx_power": 20.0,
|
||||
"frequency": 2.4,
|
||||
"wifi_standard": "802.11n",
|
||||
"coverage": 20.0,
|
||||
"size": 0.2,
|
||||
"max_height": 2.7
|
||||
}
|
||||
]
|
||||
}
|
||||
24554
floor_plans/floorplan_line_materials.json
Normal file
24554
floor_plans/floorplan_line_materials.json
Normal file
File diff suppressed because it is too large
Load Diff
192
floor_plans/floorplantest.json
Normal file
192
floor_plans/floorplantest.json
Normal file
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"image_path": "D:\\Projects\\wifi-signal-prediction-main\\floor_plans\\tes1.png",
|
||||
"width_meters": 50.0,
|
||||
"height_meters": 7.0,
|
||||
"resolution": 0.2,
|
||||
"use_custom_boundary": false,
|
||||
"building_boundary": [
|
||||
[
|
||||
0,
|
||||
0
|
||||
],
|
||||
[
|
||||
50.0,
|
||||
0
|
||||
],
|
||||
[
|
||||
50.0,
|
||||
7.0
|
||||
],
|
||||
[
|
||||
0,
|
||||
7.0
|
||||
],
|
||||
[
|
||||
0,
|
||||
0
|
||||
]
|
||||
],
|
||||
"regions": [
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 7.031484257871064,
|
||||
"width": 50.25125628140703,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "brick"
|
||||
},
|
||||
{
|
||||
"x": 50.25125628140703,
|
||||
"y": 0.0,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 7.031484257871064,
|
||||
"material": "brick"
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 7.031484257871064,
|
||||
"material": "brick"
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"width": 50.25125628140703,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "brick"
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 0.7346326836581709,
|
||||
"width": 50.25125628140703,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 11.306532663316583,
|
||||
"y": 0.0,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.7346326836581709,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 20.938023450586265,
|
||||
"y": 0.0,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.7346326836581709,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 37.68844221105528,
|
||||
"y": 0.0,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.7346326836581709,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 1.7841079460269866,
|
||||
"width": 20.100502512562816,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 2.623688155922039,
|
||||
"width": 20.100502512562816,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 4.1876046901172534,
|
||||
"y": 1.7841079460269866,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.3148425787106447,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 8.375209380234507,
|
||||
"y": 1.7841079460269866,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.3148425787106447,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 16.750418760469014,
|
||||
"y": 1.4692653673163418,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.3148425787106447,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 33.50083752093803,
|
||||
"y": 6.401799100449775,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.5247376311844079,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 33.50083752093803,
|
||||
"y": 6.401799100449775,
|
||||
"width": 16.750418760469014,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 0.0,
|
||||
"y": 6.401799100449775,
|
||||
"width": 19.262981574539364,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 20.938023450586265,
|
||||
"y": 1.5742128935532234,
|
||||
"width": 20.938023450586265,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 41.87604690117253,
|
||||
"y": 3.673163418290854,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.5247376311844079,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 41.87604690117253,
|
||||
"y": 1.5742128935532234,
|
||||
"width": 0.33500837520938026,
|
||||
"height": 0.8395802098950524,
|
||||
"material": "drywall"
|
||||
},
|
||||
{
|
||||
"x": 41.87604690117253,
|
||||
"y": 2.0989505247376314,
|
||||
"width": 7.537688442211055,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "glass"
|
||||
},
|
||||
{
|
||||
"x": 21.775544388609717,
|
||||
"y": 2.623688155922039,
|
||||
"width": 6.700167504187604,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "plastic"
|
||||
},
|
||||
{
|
||||
"x": 21.775544388609717,
|
||||
"y": 3.1484257871064467,
|
||||
"width": 6.700167504187604,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "plastic"
|
||||
},
|
||||
{
|
||||
"x": 16.750418760469014,
|
||||
"y": 4.197901049475263,
|
||||
"width": 6.700167504187604,
|
||||
"height": 0.041979010494752625,
|
||||
"material": "drywall"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user