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.