Raspberry Pi 4 LIDAR數據可視化| Python,Plotly,Websockets,D3.js



•您的支持可幫助我更頻繁地發布視頻:
https://www.patreon.com/acrobotic
https://www.paypal.me/acrobotic
https://buymeacoff.ee/acrobotic
BTC:1ZpLvgETofMuzCaKoq5XJZKSwe5UNkwLM
==========
•在以下位置找到我:

https://facebook.com/acrobotic
https://instagram.com/acrobotic
==========
•零件和耗材:
https://acrobotic.com/shop
https://amazon.com/shops/acrobotic
==========
在本視頻教程中,我使用Raspberry Pi 4通過USB從便宜的360度LADR / LiDAR(YDLIDAR X4)讀取數據。一旦能夠獲得距離測量值,我便繼續在Python中設計一個Web界面,該界面使我可以可視化極坐標圖中的數據。我將JavaScript庫D3.js / Plotly(https://plot.ly/javascript/)用於客戶端圖表,並將Flask Web微框架用於設置Web應用程序的伺服器端。其核心是使用Websocket在伺服器和客戶端之間交換LiDAR數據。為此,我使用了Flask-SocketIO模塊。

該項目的代碼:
https://github.com/acrobotic/Ai_Demos_RPi/tree/master/ydlidar

YDLIDAR Python模塊:
https://github.com/lakshmanmallidi/PyLidar2

我在上一個視頻中廣泛介紹了websockets:

我們之前已經設置了基於Linux的Raspbian操作系統,如下所示:

通過SSH訪問不帶顯示器,鍵盤或WiFi的Raspberry Pi:

Raspberry Pi入門:

YDLIDAR X4 10m 360度掃描激光雷達
https://amzn.to/2L2KZLe(會員)

Vilros Raspberry Pi零W入門套件:
https://amzn.to/2TBTJfw(會員)

SanDisk 32GB MicroSD卡:
https://amzn.to/2K49ybI(關聯公司)

ACROBOTIC Raspberry Pi GPIO標籤:
https://amzn.to/2Z8FTSZ(會員)

Epidemic Sound的音樂(https://epidemicsound.com)
標準YouTube許可

==========
#RaspberryPi#RaspberryPi4 #LADAR。

3 comments

Comments are closed.