最近编译PCL,利用源码编译1.8编译过,然后测试openni_grabber.cpp函数,但是提示错误。调试无果,果断又利用PCL官网的三行代码,安装pcl
测试openni_grabber.cpp,还是会出现错误:
[OpenNIGrabber] No devices connected. terminate called after throwing an instance of ‘pcl::PCLIOException’ what(): pcl::OpenNIGrabber::OpenNIGrabber(conststd::string&) in openni_grabber.cpp @ 69: Device could not be initialized or no devices found. [1] 8709 abort openni_viewer
Google,百度了一圈,找到博文:
1:http://www.pclcn.org/study/shownews.php?lang=cn&id=88
2:http://www.pcl-users.org/can-not-open-the-depth-source-solved-td4029696.html
解决方法:这八成是XnSensorServer的问题。你安装PrimeSense工具包了吗?是否有老的XnSensorServer进程在运行?尝试结束该进程。或者直接卸载所有与设备相关的驱动,去PCL官方下载对应的设备包,重新安装
Google上面还有一种解决方案,下载了四个驱动,重新安装
不过安装过后,又出现了问题,
:
find_package(PCL 1.6 REQUIRED)
PCL 1.6 REQUIRED)
<pre name="code" class="cpp" style="font-size: 18px; line-height: 26px;">PCL 1.7 REQUIRED)
PCL 1.8 REQUIRED)但是,都还是出现上面的错误,尚未解决。。。