Skip to content

Orbbec depth camera worked #12

Description

@wendaoyuchen

I write this for those who try ElasticFusion with Orbbec depth camera.
If you met the problem "cannot find the device", you should change the CMakeLists.txt like this:

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
find_package(OpenNI2 REQUIRED)
INCLUDE_DIRECTORIES(${OPENNI2_INCLUDE_DIR})
target_link_libraries(Logger2                       
                      ${ZLIB_LIBRARY}
                      ${Boost_LIBRARIES}
                      ${OpenCV_LIBS} 
                      ${QT_LIBRARIES}
		      ${OPENNI2_LIBRARY}
                      boost_system
                      boost_filesystem
                      boost_thread
                     )

and delete these code ,

  # if(CMAKE_SIZEOF_VOID_P EQUAL 8)
       # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OpenNI2/libOpenNI2x64.so
	#configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OpenNI2/libOpenNI2x64.so
#${CMAKE_CURRENT_BINARY_DIR}/libOpenNI2.so COPYONLY)
        #configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OpenNI2/libDummyDevicex64.so ${CMAKE_CURRENT_BINARY_DIR}/OpenNI2/Drivers/libDummyDevice.so COPYONLY)
       # configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OpenNI2/libOniFilex64.so ${CMAKE_CURRENT_BINARY_DIR}/OpenNI2/Drivers/libOniFile.so COPYONLY)
      #  configure_file(${CMAKE_CURRENT_SOURCE_DIR}/OpenNI2/libPS1080x64.so ${CMAKE_CURRENT_BINARY_DIR}/OpenNI2/Drivers/libPS1080.so COPYONLY)
   # else()

then ccmake ../src/ to make sure the OpenNI2_INCLUDE_DIR and OPENNI2_LIBRARY is the right place as you run ElasticFusion or Kintinous with Orbbec depth camera.

Thanks for the author's work.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions