Hi, this is a great repository! All the examples work out great for me. The only problem I have is when I call lidar.iter_scan(), it returns measurement continuously and the program just stucks there so that I can not do that tasks in the code. I am curious how can I get one measurement at a time from lidar so that I can do others tasks in a while loop.
Pseudo code for my desired program is:
while True:
Get raspberry pi v2 camera image
Get measurement from lidar (when I use lidar.iter_scan(), lidar starts returning scans continuously and the program gets stuck here forever)
Hi, this is a great repository! All the examples work out great for me. The only problem I have is when I call lidar.iter_scan(), it returns measurement continuously and the program just stucks there so that I can not do that tasks in the code. I am curious how can I get one measurement at a time from lidar so that I can do others tasks in a while loop.
Pseudo code for my desired program is: while True:
Appreciate your help.