Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orbbec depth camera worked #12

Open
wendaoyuchen opened this issue May 2, 2018 · 0 comments
Open

Orbbec depth camera worked #12

wendaoyuchen opened this issue May 2, 2018 · 0 comments

Comments

@wendaoyuchen
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant