wrappers/pcl/readme.md
Examples in this folder are designed to complement existing SDK examples and demonstrate how Intel RealSense cameras can be used together with PCL (Point-Cloud Library).
This page is certainly not a comprehensive guide to getting started with PCL, but it can help get on the right track.
CMake from cmake.org/downloadset PCL_ROOT="C:\Program Files (x86)\PCL 1.8.1"
set PATH=%PATH%;%PCL_ROOT%\bin;%OPENNI2_REDIST%
Or if you have install the 64-bit version:
set PCL_ROOT="C:\Program Files\PCL 1.8.1"
set PATH=%PATH%;%PCL_ROOT%\bin;%OPENNI2_REDIST64%
If you had Visual Studio openned, please restart it to make sure new environment variables are in effect.
Clone or download librealsense sources from github.com/realsenseai/librealsense into a local directory (C:/git/librealsense)
Run cmake-gui and fill source code and binaries locations and press Configure
Make sure ``BUILD_SHARED_LIBS` is checked (linking to librealsense staticly will cause problems with PCL linkage)
Check the BUILD_PCL_EXAMPLES flag and click Configure again:
Click Generate and Open Project
Locate PCL solution-folder under Examples
Right-click on one of the examples to Set as StartUp Project
Press F5 to compile and run the example
sudo add-apt-repository ppa:v-launchpad-jochen-sprickerhof-de/pcl
sudo apt-get update
sudo apt-get install libpcl-all
librealsense from source-DBUILD_PCL_EXAMPLES=true to your cmake command./wrappers/pcl/pcl/rs-pcl or just rs-pcl if you have previously executed sudo make installThe demo seem to Seg-Fault in Debug configuration. This is very troubling, but it seem to be somewhat of a known issue with PCL. As a work-around add
-DCMAKE_BUILD_TYPE=RelWithDebInfoto yourcmakecommand