-
Notifications
You must be signed in to change notification settings - Fork 266
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
Python3 driver and real-time scan viewer #7
base: master
Are you sure you want to change the base?
Conversation
Python3 driver is based on the most recent protocol documentation published by SlamTec (as of Dec, 2018). This does NOT include the new ~16000 pulse rate supported by the A3 sensor, because this feature is not yet documented by SlamTec and I don't feel like trying to reverse engineer the feature out of the C++ code.
Nice job! Thanks for having a crack at this. I'm not a contributor to this project, nor am I yet using an RPLidar, so feel free to ignore the following: It would be ideal for integrating into other projects if the Driver and Viewer were in separate Python modules. This would allow usage of the Lidar without the pygame dependency. |
Hi everyone, |
I have created a simple Python3 class object that can be used as a driver for the RPLidar sensors and/or it can be used as a real-time scan viewer on any computer (Windows, Mac, Linux). The viewer uses the PyGame library and does a good job (performance wise) of displaying the point cloud data stream. The user can navigate within the viewer to zoom, pan and rotate the point cloud view using either their mouse or keyboard. Additionally, a text-based (.csv) file is created that stores all the point cloud data, along with the scan (rotation) number, and return intensity (for standard scans).