I am woking on an obstacle avoidance system, and for that I am using Sweep 360 Lidar.
My working environment is python and for this I am using sweeppy python SDK to start with.
The problem I'm facing is, I am unable to get distance and angle from the iterable[get_scans()], it is only printing a list containing
[Sample(angle = any_angle, distance = any_distance, signal_strength = anything_between[0:255] )],
I reffered to the SDK Here, but was unable to get how to interprete Sample class to get Angle and Distance data using
The below code is the one I'm using for getting scanned data:
from sweeppy import Sweep
with Sweep('/dev/ttyUSB0') as sweep:
for scan in sweep.get_scans():
Any help, to this will be great