Python code for data fetch and real time visualization with the yd-lidar x4 laser scanner.
$ pip install requirements.txt
$ python main.py
lidarPort = '/dev/tty.SLAB_USBtoUART'
At least on OSX 10.12.6 the current (5.15.x) PYQt5 version does not work properly. This is why it was important to go back to PyQt5 version 5.13.0. Reference
Python 3.8.2 is used.