Closed hanshammel1337 closed 8 years ago
You have to compile libfreenect2 with OpenCL support. Your current libfreenect does not have OpenCL enabled. I guess you installed OpenCL after compiling libfreenect2, since kinect2_bridge detected OpenCL. Remove your libfreenect2 installation, remove the libfreenect2 build folder and run cmake
and make install
again. make
should output that it is compiling opencl_depth_processor.cpp
. Then rebuild kinect2_bridge.
I thought it was compiled with OpenCL suppport... Nevertheless I reinstalled my graphic card driver and made a fresh libfreenect2 build; now everything is fine with kinect2_bridge.
-- Feature list:
-- CUDA no
-- CXX11 yes
-- Examples yes
-- OpenCL yes
-- OpenGL yes
-- OpenNI2 no
-- TegraJPEG no
-- Threading std::thread
-- TurboJPEG yes
-- VAAPI no
-- VideoToolbox no (Apple only)
-- Configuring done
and
[ 84%] Building CXX object CMakeFiles/freenect2.dir/src/opengl_depth_packet_processor.cpp.o
[ 88%] Building CXX object CMakeFiles/freenect2.dir/src/opencl_depth_packet_processor.cpp.o
Linking CXX shared library lib/libfreenect2.so
hello,
when i start
kinect2_bridge.launch
everything seems fine. opencl chooses my dedicated graphic card and the bridge is waiting for clients:when i run the example for the viewer
rosrun kinect2_viewer kinect2_viewer sd cloud
the bridge output shows, that now openGL is used. the viewer windows is just black.depth_method
andreg_method
are by default set toopencl
. when i force this arguments to be opencl in the launchfile, kinect2_bridge start fails with:i can't see any depth images with integrated viewer or with rviz :( please help me. any suggestions? why openCL seesm to be fine when using
default
and fails when usingopencl
?