Skip to content

Commit

Permalink
[done]task PointCloudLibrary#1
Browse files Browse the repository at this point in the history
Modified OpenNI to OpenNI2.
  • Loading branch information
Chris.Shu committed Sep 7, 2017
1 parent 0114a05 commit c78d6b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 4 additions & 2 deletions apps/in_hand_scanner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ endif()

#OpenNI
if(NOT WITH_OPENNI)
set(DEFAULT AUTO_OFF)
set(REASON "OpenNI was not found or was disabled by the user.")
# set(DEFAULT AUTO_OFF)
# set(REASON "OpenNI was not found or was disabled by the user.")
set(DEFAULT TRUE)
set(REASON)
elseif(NOT ${DEFAULT} STREQUAL "AUTO_OFF")
set(DEFAULT TRUE)
set(REASON)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
#include <pcl/apps/in_hand_scanner/boost.h>
#include <pcl/apps/in_hand_scanner/common_types.h>
#include <pcl/apps/in_hand_scanner/opengl_viewer.h>
#include <pcl/io/openni2_grabber.h>

////////////////////////////////////////////////////////////////////////////////
// Forward declarations
Expand Down Expand Up @@ -209,7 +210,7 @@ namespace pcl
typedef pcl::ihs::MeshPtr MeshPtr;
typedef pcl::ihs::MeshConstPtr MeshConstPtr;

typedef pcl::OpenNIGrabber Grabber;
typedef pcl::io::OpenNI2Grabber Grabber;
typedef boost::shared_ptr <Grabber> GrabberPtr;
typedef boost::shared_ptr <const Grabber> GrabberConstPtr;

Expand Down

0 comments on commit c78d6b5

Please sign in to comment.