Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow sample rate in C++ #13

Open
gh0st-gh opened this issue Feb 12, 2024 · 0 comments
Open

Slow sample rate in C++ #13

gh0st-gh opened this issue Feb 12, 2024 · 0 comments

Comments

@gh0st-gh
Copy link

Using the C++ SDK example and polling at 1500 Hz up to 10x this rate (and as low as 100 Hz just for testing) resulted in extremely slow responses (10s to 100s of ms) from the lidarreader object. Over a battery of sampling using 2 different hardware units resulted in point/second sampling rates of 50 to 200 points per second, averaging ~120 points/s. Our host hardware is fine. We're at < 5% CPU usage. Advertised for the L1 RM is 22,600 samples/second. Running the ROS sample package produced decent, usable visualizations by comparison on the same hardware.

What is the discrepancy here? It seems like, if anything, the direct C++ access should be the same or faster than ROS. Is there any other sample C++ code which is proven to accumulate new data points anywhere near the advertised rate rather than just polling the lidarreader parse() function? Any projects someone can link to which use strictly C++ and demonstrate this?

An example would be helpful. I've tried adjusting all of the (poorly documented) parameters, and none seem to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant