-
-
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
IOException When Creating OpenNI2Grabber #3290
Comments
We have been transitioning from In other words, in case you use a released versions (e.g. 1.9.1), then your fix 3 is needed. If you use the Speaking of changes 1 and 2, you are switching between OpenNI versions. Which version to use depends on which version PCL was compiled with, so it's not a bug in tutorial per se. That said, we should probably switch to OpenNI2 since standalone installer on Windows has OpenNI2. |
Thank you for the respone @taketwo! As you suggested, I am using the 1.9.1 release of PCL. I implemented fix #1 and #2 since the release version 1.9.1 of PCL installs OpenNI2. I do not currently have version 1 of OpenNI installed. So #1 and #2 were required for the library that was installed with the release, and fix #3 was required to address the boost to std change. It is still not clear to me where I am going wrong. I suppose I could install version one of OpenNI and implement only fix number three? |
Oh, I'm afraid I misread your report. I thought you are just listing the changes that you needed to make to a tutorial to compile it. Now I realized that you actually hit an error running the compiled app. What does the exception say? Please surround it with |
Unfortunately I believe I am missing the PDB -
I am able to look at the exception using the debugger and see:
I am not sure if this is helpful, but it seems to be in the setupDevice() method. It did occur to me (which I should have included in my original report) that I am using the Kinect for Azure (their newest Kinect). I am curious if this is either not an OpenNI device (I just assumed it was since previous versions of Kinect were) or if there is something incompatible. |
I have never used Kinect for Azure, but I am 99% sure it's not an OpenNI device since it's not based on PrimeSense technology.4 |
My apologies than! Closing the issue, thank you for your help! |
Your Environment
Context
Attempting to implement the OpenNI grabber tutorial, which can be found here:
http://pointclouds.org/documentation/tutorials/openni_grabber.php
Expected Behavior
I found three issues with the above tutorial.
#include <pcl/io/openni2_grabber.h>
pcl::Grabber* interface = new pcl::io::OpenNI2Grabber();
boost::function<void(const pcl::PointCloud<pcl::PointXYZ>::ConstPtr&)> f = [this](const pcl::PointCloud<pcl::PointXYZ>::ConstPtr& cloud) { cloud_cb_(cloud); };
With the three changes above I was able to build the solution.
Current Behavior
When attempting to run the solution, I received the following exception:
Unhandled exception at 0x00007FFE416D9129 in Object Tracking.exe: Microsoft C++ exception: pcl::IOException at memory location 0x000000FF53B9EC78.
From the updated line #17 (above)
Code to Reproduce
The sample code from the above link with the specified changes.
Possible Solution
The text was updated successfully, but these errors were encountered: