Unofficial pure-python module for iLidar, solid state lidar by Hybo
$ pip install hybo
example/simple.py
import time
import hybo
with hybo.Lidar('/dev/cu.usbserial-D3095E6S') as hybo:
# waiting for connection
time.sleep(1)
# retrieve latest frame
frame = hybo.get_latest_frame()
print(frame)
example/simple_sequencial.py
import time
import hybo
SERIAL_DEV = '/dev/cu.usbserial-D3095E6S'
hybo = hybo.Lidar(SERIAL_DEV)
hybo.start()
# waiting for first frame
time.sleep(1)
print(hybo.get_latest_frame())
hybo.close()
{'sequence': 53247, 'time_peak': 529.675937, 'points': array([[0, 0, 0],
[0, 0, 0],
[0, 0, 0],
...,
[0, 0, 0],
[0, 0, 0],
[0, 0, 0]], dtype=int16)}
- callback-style frame capturing
- frame queuing
- async mode
- better documentation