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
Shintaro Hosoai
November 21, 2022
Technology
1.4k
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
650
Other Decks in Technology
See All in Technology
3つのアプローチで目指す チームを強くするAI駆動開発
thkt
0
120
カンファレンスに参加した後の浮遊感とセルフケア
pauli
0
310
【データ横丁主催】AI Agentがコンテキストを使って仕事をした後、何が残るのか― 組織の経験を次の判断に引き継ぐ「Agent Memory」
shisyu_gaku
2
330
ミイダス株式会社 テックチームのご紹介 / MIIDAS Tech Team
miidas
0
160
不可逆な意思決定を避けながら10億超の顧客データを AI Ready にするデータ基盤設計
baseballyama
1
140
購入ドメインでの課題と取り組み
ykagano
0
150
1万名の社員が使う認証基盤で どう信頼性を担保するか?
kairim0
0
210
ハードウェアコンペでもAI駆動開発が進んでいる話
iotengineer22
0
310
DWH の限界突破! AI エージェント向け爆速リアルタイムデータ基盤 ClickHouse
jozono
1
210
AI駆動開発の時代になったのでトヨタ生産方式から見直す
terurou
2
4k
オンラインゲームのシステム全体像 - コロプラ 2026年度 新卒研修
colopl
0
870
React Nativeでの OTA Updateって、 どう説明する?
ichiki1023
0
150
Featured
See All Featured
Designing Powerful Visuals for Engaging Learning
tmiket
1
600
Digital Ethics as a Driver of Design Innovation
axbom
PRO
1
450
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.3k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
510
RailsConf 2023
tenderlove
30
1.6k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
12k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.2k
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
38
3k
Documentation Writing (for coders)
carmenintech
77
5.6k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
250
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
340
Jamie Indigo - Trashchat’s Guide to Black Boxes: Technical SEO Tactics for LLMs
techseoconnect
PRO
0
690
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の話を殆どしなくて 誠に申し訳ございません