-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
How to get only Voxel locations and colors. I don't want vertex normals and faces. #6411
Comments
The best approach to getting a voxelized cloud with RealSense may be to use Point Cloud Library (PCL), as the RealSense SDK 2.0 software has a compatibility 'wrapper' for PCL. Please google for The RealSense PCL wrapper can be found here: https://github.com/IntelRealSense/librealsense/tree/master/wrappers/pcl In regard to decimation of point cloud data with C++ in RealSense, I hope that the link below will be helpful |
Okay,
For getting the color values for each vertex,
|
I am reading on this |
Apologies for the delay in responding further, as I was researching your question extensively because I am not familiar with PCL programming. The only other reference I could find that seemed relevant was this one: |
Okay so finally able to get it. Some Reference: https://github.com/Resays/xyz_rgb_realsense/blob/ede2bf9cc81d67ff0a7b616a5c70ff529e43bfe3/xyz_rgb_realsense.cpp Here is a working code snippet (dirty), if it helps someone.
CMakeLists.txt
|
Great news that you found a solution - thanks so much for sharing your code with the RealSense community :) |
@piyush2989 @MartyG-RealSense
|
Hi @AndreV84 Saving a ply with color and normals in Python will be very difficult to achieve. The only working method I know of for exporting a color ply successfully in Python is to export without normals using scripting at #6194 (comment) If you are able to use C++ then you could potentially use save_to_ply() (which provides a range of ply customization settings) instead of export_to_ply to save the color and mesh to ply. |
Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):
All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)
Issue Description
I can save point cloud from C++ using the following:
Howsoever, the saved ply, is a mesh with faces. Is there a way to disable this.
Also, the saved ply is heavy, can I decimate and control number of points, before saving.
Regards.
The text was updated successfully, but these errors were encountered: