Skip to content

Releases: thehapyone/FastestRplidar

The Originals

25 Feb 17:41
b23dee7
Compare
Choose a tag to compare

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.