This is the first release version of the FastestRplidar Library. The code works as expected. Although the Library is called FastestRplidar, I have added an extra helper code to make the Library more compatible with the existing Rplidar Library. The Helper code is the "myRplidar."
Using this Library is simple.
from myRplidar import RPlidar
# uses the default port ttyUSB0
lidar = RPlidar()
health = lidar.get_health()
print(health)
for i, scan in enumerate(lidar.iter_scans()):
print('%d: Got %d measurments' % (i, len(scan)))
if i > 10:
break
# stops lidar and disconnect the driver
lidar.stopmotor()
A future version of this program will most likely not be managed by me.