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
M5Stack x ROS2
Search
anoken
March 13, 2019
Technology
2.3k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
M5Stack x ROS2
anoken
March 13, 2019
More Decks by anoken
See All by anoken
ModuleLLM、最前線!
anoken
1
370
Pulsar2 を雰囲気で使ってみよう
anoken
0
740
Maix/M5StickVで見守る技術
anoken
0
640
M5StickVで見守る技術
anoken
0
1.1k
家庭の平和とM5Cameraと技術書典6
anoken
1
660
M5Stack+rosserial (ROS Japan UG #24 )
anoken
1
1.9k
Other Decks in Technology
See All in Technology
AIDLC_ヤフーショッピングの取り組み
lycorptech_jp
PRO
0
560
CSに"SLO"は要らない、経営層に"99.9%"は伝わらない - SREを全社に"翻訳"する3原則
cscengineer
PRO
0
3.5k
AWS Blocks を触ってみた/first-tach-aws-blocks
fossamagna
2
150
『AIに負けない』より『AIと遊ぶ』」〜ワクワクが最強のテスト・QA学習戦略_公開用
odan611
2
510
クラウド上のデータ復旧で見落としがちな制約: 医療系 SaaS の BCP 設計から得た教訓
kakehashi
PRO
0
2.4k
証券システムを10年Scalaで作り続けるということ - 関数型まつり2026
krrrr38
3
740
product engineering with qa
nealle
0
150
人を動かすのは時間ではなく、納得感 〜新任EMが入社3ヶ月、組織を2回変えた話〜
kakehashi
PRO
2
150
CIで使うClaude
iwatatomoya
0
160
Road to SRE NEXTの今までとこれから
hiroyaonoe
0
210
デジタル・デザイン:次の50年を描く「進化する青写真」
y150saya
0
830
Amazon EVS で VCF 9.0 / 9.1 のサポート開始まとめ
mtoyoda
0
280
Featured
See All Featured
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
630
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
220
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.6k
Visual Storytelling: How to be a Superhuman Communicator
reverentgeek
2
590
Thoughts on Productivity
jonyablonski
76
5.2k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
44k
30 Presentation Tips
portentint
PRO
1
340
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
630
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
4.3k
Collaborative Software Design: How to facilitate domain modelling decisions
baasie
1
260
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
Transcript
M5Stack x ROS2
M5Stack x ROS2 の前に
None
5 5 5cm 5cm M5Stackは、 EspressifのESP32に、 ディスプレイ、スピーカー、をつけて、 電源を樹脂のケースに入れたもの。
Q: M5Stack 小さいディスプレイとスピーカ があります。 何に使いますか? 何に使いますか?
None
None
プリン・ア・ラートの歴史 2017年10月ごろ 2018年4月ごろ
None
None
None
None
None
ROS2 library for Arduino ROS2 library for Arduino ROBOTISのKyung-Wan Ki
(@OpusK )氏 が開発中のライブラリ https://github.com/ROBOTIS-GIT/ros2arduino/
Micro-XRCE-DDSを介して、 M5Stack(ESP32)とROS2が繋がる
$ git clone https://github.com/eProsima/Micro-XRCE-DDS-Agent.git $ cd Micro-XRCE-DDS-Agent $ mkdir build
&& cd build $ cmake -DTHIRDPARTY=ON -DCONFIG_UDP_TRANSPORT_MTU=4096 - $ mkdir -p ~/ros2_ws/src $ cd ~/ros2_ws $ wget https://raw.githubusercontent.com/ros2/ros2/release-latest/ros2.repos $ vcs import src < ros2.repos $ sudo rosdep init $ rosdep update $ rosdep install --from-paths src --ignore-src --rosdistro crystal -y --skip-keys "console_b $ cd ~/ros2_ws/ $ colcon build --symlink-install --packages-ignore qt_gui_cpp rqt_gui_cpp $ cmake -DTHIRDPARTY=ON -DCONFIG_UDP_TRANSPORT_MTU=4096 - DCONFIG_SERIAL_TRANSPORT_MTU=4096 .. $ sudo make install $ sudo ldconfig /usr/local/lib/
None
$ MicroXRCEAgent udp 2018 Agentの起動 ArduinoIDEでの書き込み void publishString_x(std_msgs::Int16* msg, void*
arg) { (void)(arg); msg->data = IMU.ax *1000; } class StringPub : public ros2::Node { public: StringPub(): Node() { ros2::Publisher<std_msgs::Int16>* publisher_x = ros2::Publisher<std_msgs::Int16>* publisher_x = this->createPublisher<std_msgs::Int16>("acc"); this->createWallFreq(PUBLISH_FREQUENCY, (ros2::CallbackFunc)publishString_x, NULL, publisher_x); }}; void setup() { ros2::init(&udp, AGENT_IP, AGENT_PORT); } void loop() { ros2::spin(&StringNode); }
M5Stack->wifi->ros2へpublish->rqt2 rqt_plot https://youtu.be/rx6fg5okXl4
動画の見た目一緒だけど、裏では ・通信がとても速い・動作軽量化 (vs ROS1 rosserial) ・ ESP(Arduino)複数つなげられる(vs ROS1 rosserial=1台) ・
roscore不要(但し、ros2はDDSのAgentServer起動にUbuntuは必要)
None
None
twitter :@anoken2017