HoloLens x IoT 試すときによくやる実装
-
Upload
seigo-tanaka -
Category
Engineering
-
view
963 -
download
0
Transcript of HoloLens x IoT 試すときによくやる実装
![Page 1: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/1.jpg)
xRLT vol.01
HoloLens x IoT 試すときによくやる実装
ワンフットシーバス 田中正吾
![Page 2: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/2.jpg)
私の話はスライドを後ほど共有します。話す内容に注力いただいて大丈夫です!
![Page 3: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/3.jpg)
自己紹介
![Page 4: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/4.jpg)
今日の登壇時の写真について
![Page 5: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/5.jpg)
HoloLensかぶっている人と見せかけて熱血Holo教師風に説明しているほうです
SAMURAI ISLAND EXPO17にて照明設備とHoloLensの連携の説明をしているときの写真
こっち
![Page 6: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/6.jpg)
田中正吾(たなかせいご)屋号:ワンフットシーバス
2004年よりフリーランス。以後、FLASH制作を中心にインタラクティブコンテンツを主に行い現在に至る。最近は、JavaScriptやHTML5アニメーション、スマートフォン演出制作のワークフロー改善に関わったりしていました。デジタルサイネージやアプリ制作もやります。
![Page 7: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/7.jpg)
HoloLens x IoT してます
![Page 8: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/8.jpg)
WEB技術とのMixed Realityに可能性を感じていて HoloLens x IoT 系やっています
個人実験だけじゃなく企業連携やR&D実案件も出てきました
Mixed Reality
![Page 9: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/9.jpg)
たとえばこんなことやっています
![Page 10: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/10.jpg)
MQTTで遠隔無線で点灯するIoTデバイスNefryBT x 3
![Page 11: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/11.jpg)
HoloLensからON/OFF制御!レッドがON、ブルーがOFFでうごきます。
![Page 12: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/12.jpg)
雰囲気を伝える動画
![Page 13: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/13.jpg)
いざ実演!
![Page 14: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/14.jpg)
今回のしくみとその周辺
![Page 15: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/15.jpg)
Raspberry PiにNode-REDを立ててHoloLensのWebSocketとNefryBTへのMQTTを中継
Node-RED
NefryBT
RaspberyPiHoloLens
MQTTWebSocket
![Page 16: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/16.jpg)
Raspberry Pi Node-REDでいろいろ橋渡しNode-REDのフロー図
![Page 17: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/17.jpg)
HoloLensとの通信方法。いろいろできる。
HoloLensBluetooth通信
HTTP通信
WebSocket通信
MQTT通信(Unity/.Net4.7でやりやすく)
![Page 18: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/18.jpg)
ただ送るだけなら
HoloLensBluetooth通信
HTTP通信
WebSocket通信
MQTT通信(Unity/.Net4.7でやりやすく)
![Page 19: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/19.jpg)
双方向のほう
HoloLensBluetooth通信
HTTP通信
WebSocket通信
MQTT通信(Unity/.Net4.7でやりやすく)
![Page 20: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/20.jpg)
Wi-Fiなしでもイケる
HoloLensBluetooth通信
HTTP通信
WebSocket通信
MQTT通信(Unity/.Net4.7でやりやすく)
![Page 21: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/21.jpg)
これをもとにクラウドもつなげてさまざまな恩恵を得ることもできる
画像認識・データ保存・高度な計算・セキュアな管理・スケールできる仕組み など
HoloLensBluetooth通信
HTTP通信
WebSocket通信
MQTT通信
クラウド
![Page 22: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/22.jpg)
よくやる実装
![Page 23: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/23.jpg)
HoloLens(Mixed Reality)はいろいろと試して探っていく時期
もちろんその中から良いものが生まれていく
![Page 24: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/24.jpg)
まず「現実に発現する」ことが大事はじめて検討できるようになる!
![Page 25: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/25.jpg)
ひとつの通信方法で結んでしまうと強固だがトライ&エラーがしにくい場合がある通信のベストプラクティスも探している状態。たのしい。
![Page 26: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/26.jpg)
そこで中間で橋渡しをしてる手法
![Page 27: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/27.jpg)
今回もそうしている
![Page 28: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/28.jpg)
Raspberry PiにNode-REDを入れて中継しているやり方
Node-RED
NefryBT
RaspberyPiHoloLens
MQTTWebSocket
![Page 29: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/29.jpg)
「データが通っているか」「エラーはないか」データの流れを確認しやすい
直接つなげるとかっこいいがHoloLensまわりの境界チェックが苦労する
Node-RED
NefryBT
RaspberyPiHoloLens
CHECK
CHECK CHECK
CHECK
CHECKCHECK
![Page 30: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/30.jpg)
さまざまな通信方法を変換できるのでしくみを作ることに専念できる
1手法で統一するとかっこいいが、通信方法ごと得手不得手がありやりにくいときが
Node-RED
NefryBT
RaspberyPiHoloLens
WebSocket通信 MQTT通信
![Page 31: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/31.jpg)
まず、できあがるので、全体像が見えるその上で改良や機能追加できる
MixedReality x IoTだと技術要素が多いので出来上がらない時間が続くと心が折れやすい
Node-RED
NefryBT
RaspberyPiHoloLens
![Page 32: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/32.jpg)
デメリットもあるがメリットも多い
➔機材が多くなる➔応答が遅くなる場合がある➔気にすることが多くなる➔まどろっこしさありうる
![Page 33: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/33.jpg)
しくみが整ったら、少しずつ直接つないで洗練させていけばいい
![Page 34: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/34.jpg)
みなさんやってきましょう!
![Page 35: HoloLens x IoT 試すときによくやる実装](https://reader034.fdocuments.net/reader034/viewer/2022051318/5a663f877f8b9a47688b4a39/html5/thumbnails/35.jpg)
ご清聴いただきましてありがとうございました!