Skip to content

Commit

Permalink
Merge pull request #14 from lebronzhang/dev
Browse files Browse the repository at this point in the history
Combine librealsense and RSSDK as  one single grabber
  • Loading branch information
huningxin authored Jul 11, 2016
2 parents 523cebf + 5a232ea commit 7d9a628
Show file tree
Hide file tree
Showing 16 changed files with 847 additions and 1,355 deletions.
35 changes: 15 additions & 20 deletions io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -151,24 +151,23 @@ if(build)
endif()

if(WITH_RSSDK)
set(RSSDK_GRABBER_INCLUDES
set(REALSENSE_GRABBER_INCLUDES
include/pcl/io/real_sense_grabber.h
)
set(RSSDK_GRABBER_SOURCES
set(REALSENSE_GRABBER_SOURCES
src/real_sense_grabber.cpp
src/real_sense/real_sense_device_manager.cpp
src/real_sense/sdk/real_sense_grabber.cpp
src/real_sense/sdk/real_sense_device_manager.cpp
)
endif()

if(WITH_LIBREALSENSE)
set(LIBREALSENSE_GRABBER_INCLUDES
include/pcl/io/librealsense_grabber.h
)
set(LIBREALSENSE_GRABBER_SOURCES
src/librealsense_grabber.cpp
src/librealsense/librealsense_grabber_impl.cpp
src/librealsense/librealsense_device_manager.cpp
else(WITH_LIBREALSENSE)
set(REALSENSE_GRABBER_INCLUDES
include/pcl/io/real_sense_grabber.h
)
set(REALSENSE_GRABBER_SOURCES
src/real_sense_grabber.cpp
src/real_sense/librealsense/real_sense_grabber.cpp
src/real_sense/librealsense/real_sense_device_manager.cpp
)
endif()

if(LIBUSB_1_FOUND)
Expand Down Expand Up @@ -237,8 +236,7 @@ if(build)
${ENSENSO_GRABBER_SOURCES}
${DAVIDSDK_GRABBER_SOURCES}
${DSSDK_GRABBER_SOURCES}
${RSSDK_GRABBER_SOURCES}
${LIBREALSENSE_GRABBER_SOURCES}
${REALSENSE_GRABBER_SOURCES}
)
if(PNG_FOUND)
list(APPEND srcs
Expand Down Expand Up @@ -286,8 +284,7 @@ if(build)
${ENSENSO_GRABBER_INCLUDES}
${DAVIDSDK_GRABBER_INCLUDES}
${DSSDK_GRABBER_INCLUDES}
${RSSDK_GRABBER_INCLUDES}
${LIBREALSENSE_GRABBER_INCLUDES}
${REALSENSE_GRABBER_INCLUDES}
"include/pcl/${SUBSYS_NAME}/pxc_grabber.h" # contains only depreciation note
)

Expand Down Expand Up @@ -370,9 +367,7 @@ if(build)

if(WITH_RSSDK)
target_link_libraries(${LIB_NAME} ${RSSDK_LIBRARIES})
endif()

if(WITH_LIBREALSENSE)
else(WITH_LIBREALSENSE)
target_link_libraries(${LIB_NAME} ${LIBREALSENSE_LIBRARIES})
endif()

Expand Down
128 changes: 0 additions & 128 deletions io/include/pcl/io/librealsense/librealsense_grabber_impl.h

This file was deleted.

120 changes: 0 additions & 120 deletions io/include/pcl/io/librealsense_grabber.h

This file was deleted.

Loading

0 comments on commit 7d9a628

Please sign in to comment.