Device could not be initialized or no devices found
2015-11-30 13:15
393 查看
最近编译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上面还有一种解决方案,下载了四个驱动,重新安装
不过安装过后,又出现了问题,
:
发现博文一篇:
1:http://www.pcl-developers.org/Openni-Grabber-openni-device-cpp-125-creating-image-generator-failed-td5707710.html
不过还是会出现问题,如下:
在古月居(http://blog.csdn.net/hcx25909/article/details/8651840)的解决方法:
终于发现了前边kinect数据显示错误的问题,原来是那些例程包里cmake文件中链接的pcl版本不对,pcl1.6的例程链接的竟然是1.2和1.3的,真是bug~~~所以在编译之前,修改cmake文件中的链接版本:
我也尝试过修改为
但是,都还是出现上面的错误,尚未解决。。。
测试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上面还有一种解决方案,下载了四个驱动,重新安装
不过安装过后,又出现了问题,
:
Openni Grabber - openni_device.cpp @ 125 : creating image generator failed
发现博文一篇:1:http://www.pcl-developers.org/Openni-Grabber-openni-device-cpp-125-creating-image-generator-failed-td5707710.html
不过还是会出现问题,如下:
在古月居(http://blog.csdn.net/hcx25909/article/details/8651840)的解决方法:
终于发现了前边kinect数据显示错误的问题,原来是那些例程包里cmake文件中链接的pcl版本不对,pcl1.6的例程链接的竟然是1.2和1.3的,真是bug~~~所以在编译之前,修改cmake文件中的链接版本:
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)
但是,都还是出现上面的错误,尚未解决。。。
相关文章推荐
- ListView多选滚动问题
- 强制弹出系统键盘(禁用搜狗键盘)
- 蓝桥 入门训练 Fibonacci数列
- 黑马程序员——OC学习——基础语法二
- Android权限列表permission说明 (一)
- Genero SQL Performance
- mysql 连表查询结果集图解
- http协议
- Python实现单隐层神经网络
- vagrant
- 5天不再惧怕多线程——第一天 尝试Thread
- 全功能智能车之CCD液晶显示定时器触发ADC 触发DMA传输(CCD补充篇)(第十六篇)
- iOS开发-基础:MD5加密算法
- 实验五通讯协议设计报告
- Android中Bitmap和Drawable详解
- jquery获得焦点按下enter键清除文本框
- OpenFileDialog - 设置 - Filter 笔记
- DLL共享数据
- 关于游戏中的分享之ShareSDK的研究续一
- 我的图像处理领域收藏网站