Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Node-REDでTelloを動かすノードを作ってみた
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
KMiura
January 20, 2021
Technology
370
0
Share
Node-REDでTelloを動かすノードを作ってみた
2020.1.20 ビジュアルプログラミングIoTLT vol6
https://iotlt.connpass.com/event/196674/
KMiura
January 20, 2021
More Decks by KMiura
See All by KMiura
運用しているアプリケーションのDBのリプレイスをやってみた
miura55
1
1.2k
Amazon Rekognitionを使ったインターホンハック
miura55
0
120
Pythonでルンバをハックしてみた
miura55
0
240
あなたの知らないクラフトビールの世界
miura55
0
430
Storage Browser for Amazon S3を触ってみた + α
miura55
0
280
Cloudflare R2をトリガーにCloudflare Workersを動かしてみた
miura55
0
300
あのボタンでつながるSORACOM
miura55
0
170
Postman Flowsで作るAPI連携LINE Bot
miura55
0
440
Lambdaと共に歩んだAWS
miura55
3
1k
Other Decks in Technology
See All in Technology
AI時代から振り返るTerraform drift運用の歴史 / AI Age Reflections on the History of Terraform Drift Operations
aeonpeople
0
580
シンデレラなんかになりたくない!ガラスの靴が割れた時代にどう歩く?
nomizone
0
220
AI時代の私の技術インプットとアウトプット術
tonkotsuboy_com
15
7.7k
Datadog 認定試験の概要と対策
uechishingo
0
180
A Harness for Behaviour: how to get AI to generate code that does what we intend, or "TDD in the age of AI"
xpmatteo
0
510
Oracle AI Database@Azure:サービス概要のご紹介
oracle4engineer
PRO
6
1.8k
Javaコミュニティをもっと楽しむための9箇条
takasyou
0
460
エンジニアは生成AIと どのように向き合うべきか? ことばの意味という観点から
verypluming
3
290
GitHub Copilot CLIでWebアクセシビリティを改善した話
tomokusaba
0
120
なぜハノーバーメッセに行くべきなのか 〜初参加だから語れること〜
tanakaseiya
0
170
ビジュアルプログラミングIoTLT vol.23
1ftseabass
PRO
0
150
脅威をエンジニアリングの糧にして:恐怖を乗り越えた先にあったもの / Turn threats into fuel for engineering: what lay beyond overcoming fear
nrslib
1
340
Featured
See All Featured
Mind Mapping
helmedeiros
PRO
1
210
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
460
First, design no harm
axbom
PRO
2
1.2k
Code Review Best Practice
trishagee
74
20k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.3k
Odyssey Design
rkendrick25
PRO
2
640
Documentation Writing (for coders)
carmenintech
77
5.4k
It's Worth the Effort
3n
188
29k
A brief & incomplete history of UX Design for the World Wide Web: 1989–2019
jct
2
380
Designing for humans not robots
tammielis
254
26k
Rebuilding a faster, lazier Slack
samanthasiow
85
9.5k
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
55k
Transcript
Node-REDでTelloを動かすノードを 作ってみた KMiura(@k_miura_io)
自己紹介 • 三浦 耕生(こうき) • 名古屋のゲーム会社 のサーバーエンジニア @k_miura_io koki.miura05
宣伝 • TelloをNode-REDを動かすための自作ノードを公開 • Telloお持ちの方はぜひお試しを! • Special thanks @Zakkiea さん
again https://flows.nodered.org/node/node-red-contrib-tello
今日はこの話
背景 • Scratchを使ってTelloを操作し たときにふとNode-REDでも やってみたいと思った
最初に試したこと • Node-REDのUDP ノードを使ってコマンド を送信 • 手動で操作するならい いかもしれないけど自 動でフライトさせようと すると工夫が必要
ありものだけだともの足りん
作ってみた
開発環境 • Windows10 • Docker(Node-REDイメージ) • Raspberry Pi(公開したノードのダウンロード、動作テスト用)
要件定義 • Scratch版で提供している機能(takeoff, land, etc.)は最低限実装 • コマンドの実行結果を出力されるようにする • バッテリー残量、機体の温度なども出力されるようにする
基本動作 • UDP送信を行う関数を用意してTelloに送信し ている • Scratchと連携するときに使ったNode.jsコー ドを参考
ステータス • Promiseを使ってレスポンスを取得 できるようにした • 力技だが本体に問題がなければ ちゃんと値が取れる • 他の方法あるぞ!という方はissue かPRを
DEMO
いざというときのための動画w https://youtu.be/dHfa1Lx3pFY
Scratch版との違い Scratch Node-RED 実行環境 Scratch2.0とNode.js Node.js デバッグ 不可(Node.jsのサーバーサイドでは可) 可 ステータスの
取得 不可 可 カメラ連携 不可 不可(V2で実装予定)
今後の展望 • カメラ連携をできるようにする • 連携サンプルを増やしていく
今回紹介したノードについて https://supernove.hatenadiary.jp /entry/2020/12/16/004621 https://github.com/Miura55/nod e-red-contrib-tello Blog Github
END