PCL学习笔记(1) win8 64bit系统 + VS208——搭建PCL开发环境

搭建环境: windows 8  + VS2008

从PCL网上下载了一个All in one(MSVC2008)的安装包,直接默认安装,在安装到OpenNI时,弹出一个提示框

具体失败原因不太清楚,略过这一步,完成PCL安装,再重新安装更高版本的OpenNI + SensorKinect ,

电脑还是无法读取Kinect(在设备管理器里查看,如果电脑能出现

PrimeSense下正确识别Kinect三个设备(Audio,Camera,motor)说明kinect驱动正确)

原因可能是(自己总结的,不一定对,欢迎大神指正):

    AllInOne包内的OpenNI版本与windows8不兼容, 导致kinect的驱动(SensorKinect依附于OpenNI)不能正确安装

   电脑无法识别kinect


解决办法:1)先在Win8 下成功安装 OpenNI  + SensorKinect ,正确之后

                       (电脑的设备管理器能出现PrimeSense下正确识别Kinect三个设备,即为Kinect驱动安装正确)

                   2) 再用预先编译好的第三方源码包搭建PCL开发环境

更简单的办法:换一台win7 的电脑!简直各种正确!各种不出错,看得你赏心悦目!


步骤1:在Win8 下成功安装 OpenNI  + SensorKinect

OpenNI/NITEInstallation on Windows 8

http://fivedots.coe.psu.ac.th/~ad/kinect/installation.html

May 2014: PrimeSense was bought by Apple at the end of April, andthe OpenNI.org website was shut down.Fortunately, several sites have set up archives of the old OpenNI and NITEsoftware, such as Simple-OpenNI and StructureSensor.

When looking through these archives, it's important to rememberthat the code examples in my book use OpenNI version 1. It's quitedifferent from version 2, which sports many changes to the skeleton and handdetection functions, resulting in big changes to NITE as well. In other words,you need to find archive copies of version 1 of OpenNI andNITE to run my code. The following instructions explain how to do that.

This page is written in the form of a checklist. If you prefera wordier explanation, then please have a look at section 3 of the draft chapter. Remember that it refers to thenow-defunct OpenNI website from 2012, so ignore any weblink information in thatchapter.

 

1. Clean Up

Useful freeware tools for cleaning Windows: Revo UninstallerCCleaner

    •   use Revo Uninstaller to delete any applications that mention Kinect, Xbox , PrimeSense , OpenNI, NITE
    • delete the C:\Program Files\PrimeSense and C:\Program Files\OpenNI directories (or the equivalents for your platform)
    • uninstall any drivers that mention 'Kinect', 'Xbox' or 'PrimeSense' via Window's Device Manager

 

2. Download the Packages

Download the relevant OpenNI/NITE zip file from the Simple-OpenNI downloads website. Search for"All Downloads" to find suitable versions of OpenNI and NITE forWindows, Linux, and OSX. I recommend the following:

(NOTE: OpenNI不同的版本号与对应版本的NITE以及SensorKinect,如果版本不对应,可能会出现各种缺乏.dll错误)

  • Windows 32-bit: OpenNI_NITE_Installer-win32-0.27.zip
  • Windows 64-bit: OpenNI_NITE_Installer-win64-0.27.zip
  • Linux 32-bit: OpenNI_NITE_Installer-Linux32-0.27.zip
  • Linux 64-bit: OpenNI_NITE_Installer-Linux64-0.27.zip
  • OSX: OpenNI_NITE_Installer-OSX-0.24.zip

        32-bit zip file ( OpenNI_NITE_Installer-win32-0.27.zip) contains four installers:

  • nite-win32-1.5.2.21-dev.msi
  • openni-win32-1.5.4.0-dev.msi
  • SensorKinect092-Bin-Win32-v5.1.2.1.msi
  • sensor-win32-5.1.2.1-redist.msi

For example, the Windows 64-bit zipfile ( OpenNI_NITE_Installer-win64-0.27.zip) contains four installers:

  • nite-win64-1.5.2.21-dev.msi
  • openni-win64-1.5.4.0-dev.msi
  • SensorKinect092-Bin-Win64-v5.1.2.1.msi
  • sensor-win64-5.1.2.1-redist.msi

So for 64-bitwindows 8, we choose  OpenNI_NITE_Installer-win64-0.27.zipfor the nextInstallment.

Thereare two installers containing the word "sensor", which relate to theSensorKinect driver. It seems that the driverinside SensorKinect092-Bin-Win32-v5.1.2.1.msi is compiled usingVC++ 2010 so you must have Microsoft  stalledfor the driver to correctly execute. The redistributable isinside sensor-win32-5.1.2.1-redist.msi.

Ifyou don't want to install the 64-bit version of OpenNI on your 64-bit Windowsmachine, then you can use the 32-bit installer instead. Some good instructionson how to do that can be found here.

NOTE:

1.Pleasenote the version of Microsoft Visual Studio,

Ifyou chooseWindows 32-bit zip file,then Microsoft's VC++ 2010 redistributable is needed

2. For The 64-bit machine ,  OpenNI_NITE_Installer-win64-0.27.zipis recommended.


3. Installation

Installthe four downloaded packages in the order(注意顺序):

  1. OpenNI: openni-win32-1.5.4.0-dev.msi
  2. SensorKinect driver -- there are two steps: first sensor-win32-5.1.2.1-redist.msi, and then SensorKinect092-Bin-Win32-v5.1.2.1.msi
  3. NITE: nite-win32-1.5.2.21-dev.msi

Afterwards,check if the software is in the C:\ProgramFiles\OpenNI\ and C:\Program Files\PrimeSense\ directories.

 

插上Kinect

Toinstall the three hardware drivers (for motor, audio, and camera), you should:

  • plug the Kinect into your PC and into the mains;
     
  • this will trigger Windows into installing the drivers, but don't let the installation search for the drivers itself. Instead you should supply their location inC:\Program Files\PrimeSense\SensorKinect\Driver

该步骤具体细节:

1, Win+ x ---选择Device Manager

2, 选择unknown device---Kinect motor---右键选择更新驱动update driver

 

3.接下来,系统会跳出来一个对话框,询问要动搜寻更新,还是要手动安装;这时候,需要选取下面「浏览计算机上的驱动程序软件」这个选项,以进行手动指定。


4.      接下来,他会问驱动程序在哪里?如下图:

    选择第一个选项,填入SensorKinect的driver所在的文件位置,我的是C:\Program Files\PrimeSense\SensorKinect\Driver

  于是花费1分钟左右,安装成功!我激动啊!


成功的截图是这样滴:

Note 由于SensorKinect是第三方破解驱动,没有签名,可能在windows8下安装会有问题,其中的一个解决办法是:禁用驱动强制签名

Windows8下禁用驱动强制签名方法(据说只能单次有效):

  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
提供的源码资源涵盖了安卓应用、小程序、Python应用和Java应用等多个领域,每个领域都包含了丰富的实例和项目。这些源码都是基于各自平台的最新技术和标准编写,确保了在对应环境下能够无缝运行。同时,源码中配备了详细的注释和文档,帮助用户快速理解代码结构和实现逻辑。 适用人群: 这些源码资源特别适合大学生群体。无论你是计算机相关专业的学生,还是对其他领域编程感兴趣的学生,这些资源都能为你提供宝贵的学习和实践机会。通过学习和运行这些源码,你可以掌握各平台开发的基础知识,提升编程能力和项目实战经验。 使用场景及目标: 在学习阶段,你可以利用这些源码资源进行课程实践、课外项目或毕业设计。通过分析和运行源码,你将深入了解各平台开发的技术细节和最佳实践,逐步培养起自己的项目开发和问题解决能力。此外,在求职或创业过程中,具备跨平台开发能力的大学生将更具竞争力。 其他说明: 为了确保源码资源的可运行性和易用性,特别注意了以下几点:首先,每份源码都提供了详细的运行环境和依赖说明,确保用户能够轻松搭建开发环境;其次,源码中的注释和文档都非常完善,方便用户快速上手和理解代码;最后,我会定期更新这些源码资源,以适应各平台技术的最新发展和市场需求。
搭建点云开发环境需要安装以下软件: 1. Visual Studio 2017:用于编写C++代码。 2. Qt 5.10.1:用于构建GUI界面。 3. PCL 1.8.1:点云库。 4. VTK 8.0:用于可视化点云数据。 以下是具体的步骤: 1. 安装 Visual Studio 2017,选择 C++ 工作负载。此外,还需要安装 CMake。 2. 下载 Qt 5.10.1 安装包并安装。需要安装的组件有:Qt 5.10.1 MSVC2017 64-bit、Qt Visual Studio Tools、Qt Charts 和 Qt Data Visualization。 3. 下载 PCL 1.8.1 for Windows,并解压到一个目录下。 4. 下载 VTK 8.0 for Windows,并解压到一个目录下。 5. 打开 CMake,设置源代码路径为 PCL 的根目录,设置构建路径为一个新的目录(例如:PCL_build)。点击 Configure,选择 Visual Studio 15 2017 Win64 作为生成器,点击 Finish。 6. 在 CMake 中,找到 VTK_DIR 设置项,将其设置为 VTK 的安装目录(例如:D:/VTK-8.0.0/build)。点击 Configure,然后点击 Generate。 7. 打开 Visual Studio 2017,选择 File > New > Project,选择 Qt Widgets Application。设置项目名称、位置和解决方案名称,然后点击 Create。 8. 在项目属性中,选择 C/C++ > General,将 Additional Include Directories 设置为 PCL 的 include 目录(例如:D:/PCL-1.8.1/include/pcl-1.8)和 VTK 的 include 目录(例如:D:/VTK-8.0.0/include/vtk-8.0)。 9. 在项目属性中,选择 Linker > General,将 Additional Library Directories 设置为 PCL 的 lib 目录(例如:D:/PCL-1.8.1/lib)和 VTK 的 lib 目录(例如:D:/VTK-8.0.0/build/bin/Release)。 10. 在项目属性中,选择 Linker > Input,将 Additional Dependencies 设置为以下库:pcl_common_release.lib、pcl_io_ply_release.lib、pcl_visualization_release.lib、vtkCommonCore-8.0.lib、vtkFiltersCore-8.0.lib、vtkInteractionStyle-8.0.lib、vtkRenderingCore-8.0.lib。 11. 编写代码并构建项目,即可开始点云开发。 以上是在 Windows 10、Visual Studio 2017、Qt 5.10.1、PCL 1.8.1 和 VTK 8.0 环境下的点云开发环境搭建步骤。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值