Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
ROS jp 2022/11/21 What's the zenoh?
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Shintaro Hosoai
November 21, 2022
Technology
1.3k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
ROS jp 2022/11/21 What's the zenoh?
ROSCon2022で見かけた面白そうな通信ミドルウェアのZenohについて紹介します。
Shintaro Hosoai
November 21, 2022
More Decks by Shintaro Hosoai
See All by Shintaro Hosoai
2023年にクル(かもしれない)通信ミドルウェア技術(仮)
s_hosoai
0
640
Other Decks in Technology
See All in Technology
AIで開発は速くなったのに、なぜ現場は楽にならないのか 〜あなたの組織のボトルネックを突き止めるワークショップ〜
jacopen
1
310
推論の観測、できていますか? 〜 Google Cloud Gemini Enterprise Agent Platformで 3つの Gemini モデルを実測して踏んだ、評価の罠 〜
shukob
PRO
0
180
作り直せるコードは迅速に 作り直せないDBは慎重に - AI時代のプロダクトエンジニアが「判断の不可逆性」で開発速度を変える話
kinosuke01
0
280
多摩川(.dev)ランニング入門 / Tamagawa.dev#3
fujiwara3
3
440
GoCon2026 - Open Source, Open World
sanposhiho
2
950
リージョンの壁を越える、 ちょっと変わったAWSサービスの話
falken
PRO
1
290
KPIだけでは評価できないプロダクトが考えるべき Evalsという第二の評価系 / Beyond KPIs: Evals as a Second Evaluation Framework for Products #PdEConf
aki_iinuma
4
3.8k
薬剤師(ドメインエキスパート)と一緒に育てる薬局向けAIアシスタント
kakehashi
PRO
2
130
コーディングエージェントでM5Stack系の開発を少し試した時の話 / M5 Japan Tour 2026 Autumn 東京
you
PRO
0
110
AIに丸投げしないトイル削減 / Eliminating Toil Without Leaving It All to AI
kohbis
4
1k
【視聴者参加型!】AWSセキュリティアンチパターンクイズ
syoshie
1
480
AI時代におけるプロダクト横断勉強会の設計
zozotech
PRO
0
170
Featured
See All Featured
The Hidden Cost of Media on the Web [PixelPalooza 2025]
tammyeverts
2
490
Site-Speed That Sticks
csswizardry
13
1.5k
The AI Revolution Will Not Be Monopolized: How open-source beats economies of scale, even for LLMs
inesmontani
PRO
3
3.7k
We Have a Design System, Now What?
morganepeng
55
8.3k
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.5k
The Art of Programming - Codeland 2020
erikaheidi
57
14k
Believing is Seeing
oripsolob
1
210
Color Theory Basics | Prateek | Gurzu
gurzu
0
460
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
1.2k
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
260
HU Berlin: Industrial-Strength Natural Language Processing with spaCy and Prodigy
inesmontani
PRO
0
690
The World Runs on Bad Software
bkeepers
PRO
72
12k
Transcript
細合 晋太郎(東京大学) Zenohってなに? ROS Japan UG #48 ROSCon 2022ふりかえり会 Twitter
: @ShintaroHosoai GitHub : s-hosoai
元ネタ:ROSCon2022 10/20, Fleet Management Track Zenoh: How to Make ROS
2 Work at any Scale and Integrate with Anything Slide: http://download.ros.org/downloads/roscon/2022/Zenoh%20How%20to%20Make%20ROS2%20Work%20at%20any%20Scale%20and%20Integrate%20with%20Anything.pdf あれ・・資料公開されてるなら、この発表いらんのでは・・?
Zenoh The Eclipse Zenoh: Zero Overhead Pub/sub, Store/Query and
Compute. Zetta Scale社の通信ミドルウェア 当初Ocamlで実装されていたものをRustに移植(2020/10-) Eclipse Foundation Github : https://github.com/eclipse-zenoh/zenoh Web : https://zenoh.io
通信方式 Pub / Sub Pub / Sub (Push) :
ROSと同様のPub/Sub Pub / Sub (Pull):Sub時に一時保管され、任意のタイミングでPull可 Pub / Store / Get:上記Pullの一時保管場所がRouter上になったもの Get / Reply:ROSのService相当。RPC Peer Peer Peer Peer Peer Peer Peer Peer Pub sub(callback) sub(Pull) Pub Pub Get Reply Pull
ネットワーク構造 Peer Peer Peer Peer Router Peer Peer Peer client
client Peer Peer Router client client Router Peer to peer Clique Mesh Brokered Routed Router Router Router Router client client Router client client Peer Router client 機能は同じ要素っぽい。 メッセージの送受をする 中継のみ
通信レイヤ、対応言語 ZenohはRust実装で、Rust, Python, Cのク ライアントライブラリあり 各ネットワークレイヤが綺麗に抽象化されており、 様々なネットワークレイヤの上で動作可能
https://zenoh.io/blog/2022-08-12- zenoh-serial/ QUIC, TLS, TCP, UDP Unicast, UDP Multicast IPc4, IPv6 6LoWPAN WiFi, Ethernet, Thread, Bluetooth, Serial
相互運用性・拡張性
性能 8byteのペイロードで4.2M msg/s 1MBペイロードで51GB/s 無負荷時、最小15 μsecのレイテンシ
パケットのオーバーヘッドは5 byte (状況によってはもうちょっと増える) https://zenoh.io/blog/ 2022-09-30-zenoh-bahamut/ https://zenoh.io/blog/ 2021-07-05-zenoh-overhead/
Zenoh Client Library:examples (Rust) Publisher Subscriber Resolve (builder pattern) Future
Some セッション作成 Publish セッション終了 セッション作成 Subscriber作成 非同期でメッセージ待ち
Zenoh-pico Cで再実装した組込みボード向け軽量Zenoh かなりええ感じの性能が出ているらしい 2.2.1. Zephyr Note: tested with
reel_board, nucleo-f767zi, nucleo-f420zi, and nRF52840 boards. 2.2.2. Arduino Note: tested with az-delivery-devkit-v4 ESP32 board 2.2.3. ESP-IDF Note: tested with az-delivery-devkit-v4 ESP32 board 2.2.4. MbedOS Note: tested with nucleo-f747zi and nucleo-f429zi boards 2.2.5. OpenCR Note: tested with ROBOTIS OpenCR 1.0 board https://github.com/eclipse-zenoh/zenoh-pico
zenoh-bridge-dds
Robot 2 Robot 1 Zenohを使ったROS 2のNAT越え Zenoh-bridge-dds Zenoh-bridge-dds Zenoh router
ROS 2 Node ROS 2 Node NAT NAT bridgeでzenohに翻訳して通信
Zenoh-bridge-ddsとZenohdの導入方法 グローバルIPの取れるどこかのクラウドVMなどにZenoh Routerをインストール 各クライアントにzenoh-bridge-ddsをインストール 各クライアントで別プロセスやバックグラウンドとしてzenoh-bridge-ddsを実行しておく、こ の時Zenoh routerのアドレス:ポートを指定する。
あとは各クライアントでROS 2を実行すればつーつーで話せる。 詳細はQitta記事をミテネー。 https://qiita.com/Shintaro_Hosoai /items/a2f6c253a5b4599b056c
ROS 2とZenohの併用
ROS 2とZenohとElixirの併用 Raspberry Pi 4 Ubuntu 20.04 ROS 2 foxy
Raspberry Pi 4 Nerves Rclex turtlesim ? ? Zenoh dds-bridge Azure VM Ubuntu 20.04 Zenoh Router Code BEAM America 高瀬先生のライブデモ 日本で寝起きの細合 https://twitter.com/loreniuxmr/status/1588318378724237312
おわりに Zenohは、 主要な通信メソッド(Pub/Sub, Get, Store, Query)が揃ってる ネットワーク形態も自由自在
言語対応も多く、多様な通信層にも対応 相互運用性に優れ、多様なプロトコルに対応、組込みボードにも載せられる。 通信性能も高い と、かなりつおいです。 一方、ROSのようなツールやライブラリは揃ってなさそうです。他と繋いでこそ真価を発揮するかと ROSと繋がるなんかええ感じの通信ミドルウェアないかなーって時に、 ぜひ候補に覚えておいてください
さいごに ROSjpなのにROSの話を殆どしなくて 誠に申し訳ございません