code-iai / iai_kinect2

Tools for using the Kinect One (Kinect v2) in ROS
Apache License 2.0
874 stars 519 forks source link

Updating OpenCV 3 support info #558

Open gokhansolak opened 4 years ago

gokhansolak commented 4 years ago

Hello, apparently at one point OpenCV3 got support. I was able to build it with ROS Melodic / Ubuntu 18.04 and run kinect2_bridge.launch. The camera runs, I can read the camera_info, image_color etc and view it using image_view.

However, the readme still says that it won't work: image

Could you please confirm that it is fully supported and update the readme accordingly?

Thank you

Ktysai commented 4 years ago

I have ROS Melodic and Ubuntu 18. Still in a struggle to make it work. Can you post details?

gokhansolak commented 4 years ago

Hi Ktysai,

I did not do anything special, besides following the installation instructions. During libfreenect2 installation, I installed the optional OpenCL and VAAPI libs. My system:

ROS-Melodic (standard setup) Ubuntu 18.04 (everything up-to-date) Graphics card: Intel Corporation HD Graphics 620 (rev 02) OpenCV version: 3.2.0

Note: I only run kinect2_bridge.launch, no errors. I use bridge outputs, but I did not use any other features of this package, yet.

Ktysai commented 4 years ago

Thank you, @gokhansolak

I have installed all on Intel NUC i5, but OpenCL does not work. What has helped was to run the bridge with those settingsrosrun kinect2_bridge kinect2_bridge _depth_method:=cpu _reg_method:=cpu