brilliantsole 0.0.25 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -10
- package/assets/3d/rightHand.glb +0 -0
- package/assets/images/ukaton-pressure-0.svg +9 -0
- package/assets/images/ukaton-pressure-1.svg +9 -0
- package/assets/images/ukaton-pressure-10.svg +9 -0
- package/assets/images/ukaton-pressure-11.svg +9 -0
- package/assets/images/ukaton-pressure-12.svg +9 -0
- package/assets/images/ukaton-pressure-13.svg +9 -0
- package/assets/images/ukaton-pressure-14.svg +9 -0
- package/assets/images/ukaton-pressure-15.svg +9 -0
- package/assets/images/ukaton-pressure-2.svg +9 -0
- package/assets/images/ukaton-pressure-3.svg +9 -0
- package/assets/images/ukaton-pressure-4.svg +9 -0
- package/assets/images/ukaton-pressure-5.svg +9 -0
- package/assets/images/ukaton-pressure-6.svg +9 -0
- package/assets/images/ukaton-pressure-7.svg +9 -0
- package/assets/images/ukaton-pressure-8.svg +9 -0
- package/assets/images/ukaton-pressure-9.svg +9 -0
- package/assets/images/ukaton-right-insole.svg +798 -0
- package/build/brilliantsole.cjs +255 -119
- package/build/brilliantsole.cjs.map +1 -1
- package/build/brilliantsole.js +283 -140
- package/build/brilliantsole.js.map +1 -1
- package/build/brilliantsole.ls.js +210 -103
- package/build/brilliantsole.ls.js.map +1 -1
- package/build/brilliantsole.min.js +1 -1
- package/build/brilliantsole.min.js.map +1 -1
- package/build/brilliantsole.module.d.ts +76 -60
- package/build/brilliantsole.module.js +282 -140
- package/build/brilliantsole.module.js.map +1 -1
- package/build/brilliantsole.module.min.d.ts +76 -60
- package/build/brilliantsole.module.min.js +1 -1
- package/build/brilliantsole.module.min.js.map +1 -1
- package/build/brilliantsole.node.module.d.ts +75 -60
- package/build/brilliantsole.node.module.js +254 -119
- package/build/brilliantsole.node.module.js.map +1 -1
- package/build/dts/BS.d.ts +2 -2
- package/build/dts/Device.d.ts +11 -7
- package/build/dts/DeviceManager.d.ts +1 -0
- package/build/dts/InformationManager.d.ts +6 -5
- package/build/dts/connection/BaseConnectionManager.d.ts +2 -0
- package/build/dts/connection/ClientConnectionManager.d.ts +4 -0
- package/build/dts/connection/bluetooth/BluetoothConnectionManager.d.ts +1 -0
- package/build/dts/connection/bluetooth/NobleConnectionManager.d.ts +1 -0
- package/build/dts/connection/bluetooth/WebBluetoothConnectionManager.d.ts +1 -0
- package/build/dts/devicePair/DevicePair.d.ts +14 -10
- package/build/dts/devicePair/DevicePairPressureSensorDataManager.d.ts +8 -4
- package/build/dts/devicePair/DevicePairSensorDataManager.d.ts +2 -2
- package/build/dts/server/BaseClient.d.ts +1 -0
- package/build/dts/utils/CenterOfPressureHelper.d.ts +2 -2
- package/build/dts/utils/MathUtils.d.ts +2 -0
- package/build/index.d.ts +76 -60
- package/build/index.node.d.ts +75 -60
- package/examples/3d/script.js +90 -17
- package/examples/balance/script.js +2 -1
- package/examples/basic/index.html +21 -2
- package/examples/basic/script.js +17 -3
- package/examples/bottango/index.html +11 -1
- package/examples/bottango/script.js +2 -2
- package/examples/center-of-pressure/index.html +114 -114
- package/examples/center-of-pressure/script.js +1 -1
- package/examples/device-pair/index.html +58 -58
- package/examples/device-pair/script.js +12 -8
- package/examples/gloves/index.html +116 -0
- package/examples/gloves/scene.html +124 -0
- package/examples/gloves/script.js +615 -0
- package/examples/graph/index.html +11 -1
- package/examples/graph/script.js +2 -2
- package/examples/pressure/index.html +180 -12
- package/examples/pressure/script.js +144 -7
- package/examples/recording/index.html +191 -183
- package/examples/server/index.html +11 -1
- package/examples/server/script.js +6 -3
- package/examples/ukaton-firmware-update/index.html +20 -0
- package/examples/ukaton-firmware-update/manifest.json +11 -0
- package/examples/ukaton-firmware-update/merged-firmware.bin +0 -0
- package/examples/webxr/script.js +3 -3
- package/package.json +1 -1
- package/src/BS.ts +3 -8
- package/src/Device.ts +41 -8
- package/src/DeviceInformationManager.ts +4 -2
- package/src/DeviceManager.ts +10 -1
- package/src/FileTransferManager.ts +1 -1
- package/src/FirmwareManager.ts +1 -1
- package/src/InformationManager.ts +24 -7
- package/src/TfliteManager.ts +1 -1
- package/src/connection/BaseConnectionManager.ts +23 -6
- package/src/connection/ClientConnectionManager.ts +13 -1
- package/src/connection/bluetooth/BluetoothConnectionManager.ts +6 -1
- package/src/connection/bluetooth/NobleConnectionManager.ts +8 -1
- package/src/connection/bluetooth/WebBluetoothConnectionManager.ts +5 -1
- package/src/devicePair/DevicePair.ts +53 -27
- package/src/devicePair/DevicePairPressureSensorDataManager.ts +51 -23
- package/src/devicePair/DevicePairSensorDataManager.ts +5 -5
- package/src/scanner/NobleScanner.ts +5 -3
- package/src/sensor/BarometerSensorDataManager.ts +1 -1
- package/src/sensor/MotionSensorDataManager.ts +1 -1
- package/src/sensor/PressureSensorDataManager.ts +13 -8
- package/src/sensor/SensorConfigurationManager.ts +3 -3
- package/src/sensor/SensorDataManager.ts +1 -1
- package/src/server/BaseClient.ts +43 -2
- package/src/server/BaseServer.ts +149 -39
- package/src/server/udp/UDPServer.ts +1 -1
- package/src/server/websocket/WebSocketClient.ts +3 -2
- package/src/server/websocket/WebSocketServer.ts +1 -1
- package/src/utils/CenterOfPressureHelper.ts +5 -5
- package/src/utils/MathUtils.ts +31 -1
- package/src/utils/ParseUtils.ts +1 -1
- package/src/utils/checksum.ts +1 -1
- package/src/utils/mcumgr.js +1 -1
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
<html>
|
|
2
|
+
<head>
|
|
3
|
+
<title>3D iframe | BrilliantSole JavaScript SDK</title>
|
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
5
|
+
<link rel="shortcut icon" type="image/x-icon" href="/favicon.ico" />
|
|
6
|
+
<!-- <script src="https://aframe.io/releases/1.5.0/aframe.min.js"></script> -->
|
|
7
|
+
<script src="https://aframe.io/releases/1.6.0/aframe.min.js"></script>
|
|
8
|
+
<!-- required to get aframe-orbit-controls-component to work -->
|
|
9
|
+
<script>
|
|
10
|
+
THREE.Quaternion.prototype.inverse = THREE.Quaternion.prototype.invert;
|
|
11
|
+
THREE.Math = THREE.MathUtils;
|
|
12
|
+
</script>
|
|
13
|
+
<!-- https://github.com/tizzle/aframe-orbit-controls-component -->
|
|
14
|
+
<script src="https://cdn.rawgit.com/tizzle/aframe-orbit-controls-component/v0.1.14/dist/aframe-orbit-controls-component.min.js"></script>
|
|
15
|
+
<!-- https://github.com/c-frame/aframe-physics-system/blob/master/CannonDriver.md#installation -->
|
|
16
|
+
<script src="https://cdn.jsdelivr.net/gh/c-frame/aframe-physics-system@v4.2.2/dist/aframe-physics-system.min.js"></script>
|
|
17
|
+
</head>
|
|
18
|
+
|
|
19
|
+
<style>
|
|
20
|
+
body {
|
|
21
|
+
margin: 0;
|
|
22
|
+
}
|
|
23
|
+
</style>
|
|
24
|
+
|
|
25
|
+
<body>
|
|
26
|
+
<a-scene
|
|
27
|
+
physics="debug: false"
|
|
28
|
+
embedded
|
|
29
|
+
xr-mode-ui="enabled: false;"
|
|
30
|
+
device-orientation-permission-ui="enabled: false"
|
|
31
|
+
renderer="colorManagement: true;"
|
|
32
|
+
>
|
|
33
|
+
<a-assets>
|
|
34
|
+
<a-asset-item id="rightHand" src="../../assets/3d/rightHand.glb"></a-asset-item>
|
|
35
|
+
</a-assets>
|
|
36
|
+
<a-light type="directional" position="2 2 -2" target=".target"></a-light>
|
|
37
|
+
<a-light type="directional" position="-2 2 2" target=".target"></a-light>
|
|
38
|
+
<a-light type="directional" position="2 -2 2" target=".target"></a-light>
|
|
39
|
+
|
|
40
|
+
<a-camera
|
|
41
|
+
class="camera"
|
|
42
|
+
camera="fov: 50; zoom: 3.2; active: true; "
|
|
43
|
+
position="0 1 0"
|
|
44
|
+
orbit-controls="
|
|
45
|
+
enableZoom: true;
|
|
46
|
+
autoRotate: false;
|
|
47
|
+
enabled: true;
|
|
48
|
+
target: .target;
|
|
49
|
+
enableDamping: true;
|
|
50
|
+
dampingFactor: 0.125;
|
|
51
|
+
rotateSpeed:0.25;
|
|
52
|
+
minDistance:0.75;
|
|
53
|
+
maxDistance:2;
|
|
54
|
+
"
|
|
55
|
+
></a-camera>
|
|
56
|
+
|
|
57
|
+
<a-sky></a-sky>
|
|
58
|
+
|
|
59
|
+
<a-camera
|
|
60
|
+
class="cursorCamera"
|
|
61
|
+
camera="fov: 50; zoom: 3.2; active: false;"
|
|
62
|
+
look-controls="enabled: false"
|
|
63
|
+
position="0 0 0"
|
|
64
|
+
wasd-controls-enabled="false"
|
|
65
|
+
></a-camera>
|
|
66
|
+
<a-entity class="cursorExample" visible="false">
|
|
67
|
+
<a-entity class="cursor" position="0 0 -1">
|
|
68
|
+
<a-cylinder
|
|
69
|
+
class="mesh"
|
|
70
|
+
material="shader: flat;"
|
|
71
|
+
color="lightgreen"
|
|
72
|
+
data-color="lightgreen"
|
|
73
|
+
scale="1 1 1"
|
|
74
|
+
radius="0.005"
|
|
75
|
+
height="0.001"
|
|
76
|
+
rotation="90 0 0"
|
|
77
|
+
></a-cylinder>
|
|
78
|
+
</a-entity>
|
|
79
|
+
<a-box color="blue" dynamic-body data-color="blue" position="0 1 -20" class="intersectable"></a-box>
|
|
80
|
+
<a-sphere
|
|
81
|
+
class="cursorHandle"
|
|
82
|
+
radius="0.1"
|
|
83
|
+
visible="false"
|
|
84
|
+
position="1 1 -20"
|
|
85
|
+
static-body
|
|
86
|
+
color="red"
|
|
87
|
+
></a-sphere>
|
|
88
|
+
<a-plane static-body rotation="-90 0 0" width="100" height="100" position="0 -1 0" color="lightgrey"></a-plane>
|
|
89
|
+
</a-entity>
|
|
90
|
+
|
|
91
|
+
<a-entity class="target" visible="false">
|
|
92
|
+
<a-entity class="rotation">
|
|
93
|
+
<a-entity class="position" position="0 0 0">
|
|
94
|
+
<a-entity class="glove" gltf-model="#rightHand" visible="true" scale="0.05 0.05 0.05"></a-entity>
|
|
95
|
+
<a-entity data-pressure="5" position="-0.02739 0.00949 -0.04775" visible="false">
|
|
96
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
97
|
+
</a-entity>
|
|
98
|
+
<a-entity data-pressure="2" position="-0.00608 0.0113 -0.04775">
|
|
99
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
100
|
+
</a-entity>
|
|
101
|
+
<a-entity data-pressure="0" visible="false" position="0.01241 0.00847 -0.04775">
|
|
102
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
103
|
+
</a-entity>
|
|
104
|
+
<a-entity data-pressure="3" position="0.03039 0.0069 -0.03797">
|
|
105
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
106
|
+
</a-entity>
|
|
107
|
+
<a-entity data-pressure="4" position="-0.02686 -0.00286 -0.04734">
|
|
108
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
109
|
+
</a-entity>
|
|
110
|
+
<a-entity data-pressure="7" position="0.01145 -0.00286 -0.04734">
|
|
111
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
112
|
+
</a-entity>
|
|
113
|
+
<a-entity data-pressure="6" position="-0.0447 -0.01594 -0.01474">
|
|
114
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
115
|
+
</a-entity>
|
|
116
|
+
<a-entity data-pressure="1" position="0.00673 -0.00835 -0.00116">
|
|
117
|
+
<a-sphere color="red" radius="0.007"></a-sphere>
|
|
118
|
+
</a-entity>
|
|
119
|
+
</a-entity>
|
|
120
|
+
</a-entity>
|
|
121
|
+
</a-entity>
|
|
122
|
+
</a-scene>
|
|
123
|
+
</body>
|
|
124
|
+
</html>
|