this code is an implementation of Vector Field Histogram algorithm in Python programming language. The sensor used in this implementation is YDLIDAR X4 sensor from EAI. PyLidar3 library needs to be installed to use this algorithm. The plot used in this program is using PyQtgraph from PyQt4
There's an issue in this program which comes from the library used, the PyLidar3 library used in this implementation averages all the reading in 1 degree angle range, and it causes missreadings at some detected object boundary.
Special thanks github account @johnliu55tw who made the algorithm in C, who also helped me in developing this program