I tried using an Arduino to pull the distance and angle measurements off but it was very slow… I am not sure why. I ran the ultra_simple code example and it ran fast but I cannot modify the ultra_simple code, I’m having difficulty loading it up and compiling the project… Ultimately, I want to get points from the cloud that move (perhaps using openCV). Any advice would be most welcome!
The main problem is the slowness of the Arduino… do you think I may be doing this wrong?
In any case, I need to use live data and I cant edit and compile the SDK (ultra_simple project)
Depending on what you are trying to achieve, it is quite possible your Arduino is simply just not powerful enough to do it. A typical A2M6 RB-Rpk-05] can return between 2000 and 8000 samples per second. That would probably be more than the smaller Arduino boards can process and buffer effectively. Even at a (not realistic) minimum of 2 bytes per readings (1 for angle, 1 for distance), that would mean you’d need 4-16 KB of RAM just for the data per second or you’d have a smaller buffer that outputs this somewhere else, equally as fast! You may be much better off moving to a board that is more powerful and maybe even a full SBC (Single Board Computer) such as the RPi!
For any issues with the SDK, we’d first recommend to get the most up-to-date version here. If you still have issues using it, the best would be to create an issue on their GitHub repository. This manufacturer typically answers messages there pretty fast and they would be in the best position to help with such issues.