-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Support OpenNI2 devices without RGB #1174
Conversation
…ices without RGB sensor)
|
||
boost::mutex::scoped_lock lock (depth_mutex_); | ||
depth_ = depth; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please delete the extra line returns (there are a few across your pull request)
Have you tested it successfully ? I'm surprised no one tested the structure sensor with PCL before you did! |
Think that's the spacing fixed. |
I'll test Monday with a Kinect and give the feedback here |
Thanks for cleaning up. Unfortunately there are still some extra empty lines here and there, would be great if you remove them. Also, please do not extend existing pull request with unrelated commits. If you want to add a new app ( |
What is the status for merging this fix, or parts of it, for using the Structure Sensor? I really want to use OpenNI2 + PCL for grabbing point clouds. |
We can merge this fix as soon as we make sure that a) it reliably works with the Structure sensor; b) it does not affect streaming with color. If you are willing to work on this, please take over and create a new pull request with the fix. Once you have found and solved the segfault I can jump in and test whether streaming with color still works fine on my side. |
I have grabbed a fresh coppy of occipital/OpenNI2 development branch and compiled. Then I cloned the master from metacomgd/pcl, added and merged master from PoinCloudLibrary/pcl. Built a minimal cmake for grabbing and showing with openni2. The minimal, and for me most relevant, test was running pcl_openni2_pcd_recorder. It ran for a good 20 minutes (@30 Hz) without problems before I ctrl-c'ed it. No thorough inspection of the dumped PCDs, but at visual inspection they seem fine. However, after a few minutes of running pcl_openni2_viewer, I get this message with the segfault:
Looks like a problem with vtk. I will try replacing libvtk5 with libvtk6. |
I can confirm that for me upstream |
I know this is not a final solution, but it brings the PCL master into usage for me: How about taking a patch from metacomgd which only addresses the grabber and the device files? |
I think we can do this. Please extract the corresponding changes and send a pull request. Also please make sure to format them according to our style guide (two spaces indentation, spaces between function names and braces, no spaces inside braces). |
The change to extract for basic support of the Structure Sensor, i.e. no application or tool changes, is displayed below. The changes to the two files are taken directly from metacomgd/pcl. To me the changes looks very simple, and follows the code formatting in the surrounding code. I will be making a minimal, external project utilizing the added support of grabbing from the Structure Sensor. This will be based on Cython, aspiring to the functionality of the python wrapper from libfreenect. Should be a 5 min. effort, if not for my lack of knowledge of PCL and only entry level skill with Cython. Until I have this application running stably, I can not really prove the below patch as stable. In the meantime, could someone with a build-environment and several sensors test if there is any other instabilities incurred by the patch?
|
I will test the patch with Xtion, however only in second next week, i.e. in June. |
As far as I can see this looks good to be merged. @taketwo did you have time to test it? |
Will test on Friday and submit a pull request if it's stable. |
This commit contains a subset of changes proposed by @metacomgd in PointCloudLibrary#1174.
This commit contains a subset of changes proposed by @metacomgd in PointCloudLibrary#1174.
The essential part of this PR that allows using the grabber with Structure.io sensor has been merged, so closing this. Please create a new pull request in case you want to modify the |
Adds basic support for the structure.io sensor (and presumably the Asus Xtion without RGB)