Calling getScanDataWithIntervalHq will lead to a crash when there are more then 0 but less then buffersize elements available.
Here
https://github.com/Slamtec/rplidar_sdk/blame/99478e5fb90de3b4a6db0080acacd373f8b36869/sdk/src/sl_lidar_driver.cpp#L220C31-L220C31
it will keep popping the _data_queue without checking if it is empty.
Calling getScanDataWithIntervalHq will lead to a crash when there are more then 0 but less then buffersize elements available.
Here
https://github.com/Slamtec/rplidar_sdk/blame/99478e5fb90de3b4a6db0080acacd373f8b36869/sdk/src/sl_lidar_driver.cpp#L220C31-L220C31
it will keep popping the _data_queue without checking if it is empty.