-
-
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
failed to run pcl_openni2_viewer with Kinect Xbox 360(OpenNI2 + libfreenect) #1348
Comments
Looking at |
Thanks, taketwo. Yes, I think the returned vector is null. However, the kinect works well with |
I guess so. The grabber "foresees" lack of IR stream though :D |
Could anybody solve this problem? I am coming across the same. I am using Freenect + OpenNI2 + PCL. Kinect works greatly with freenect-glview and OpenNI2's NiViewer and other samples. However, with PCL it does not work, even the sample pcl_openni2_viewer it does not work. Please help. |
Just stumbled upon to this issue myself. Quick and dirty way to get around it is to comment out if (!openni_device_->isFile ())
{
if (openni_device_->hasSensor (openni::SENSOR_COLOR))
{
setColorVideoMode (getDefaultColorMode ());
}
setDepthVideoMode (getDefaultDepthMode ());
//setIRVideoMode (getDefaultIRMode ());
} However, producing similar if (!openni_device_->isFile ())
{
if (openni_device_->hasSensor (openni::SENSOR_COLOR))
{
setColorVideoMode (getDefaultColorMode ());
}
if (openni_device_->hasSensor (openni::SENSOR_DEPTH))
{
setDepthVideoMode (getDefaultDepthMode ());
}
if (openni_device_->hasSensor (openni::SENSOR_IR))
{
setIRVideoMode (getDefaultIRMode ());
}
} I will try to give it a go shortly. |
👍 The proposal looks sane indeed. If it solves the problem please submit a PR. |
…re IR and depth modesetting
…re IR and depth modesetting
fixed issue #1348 by adding device sensor check for IR and depth modesetting
A fix merged, reopen if still have problems. |
Hi,
I was trying to make my kinect for Xbox 360 to work with PCL 1.8. After ran pcl_openni2_viewer, it shows the following error:
The gdb backtrace info is:
Could anyone give suggestions on this?
Thanks,
P.S.: The working environment is Ubuntu 15.04, PCL 1.8, libfreenect, OpenNI2
The text was updated successfully, but these errors were encountered: