http://wiki.ros.org/vision_opencv
http://wiki.ros.org/cv_bridge/Tutorials
http://wiki.ros.org/opencv3
ros 与 opencv
opencv与ros通过 cv bridge连接。kinect v2又通过kinect2_bridge连接:This is a bridge between libfreenect2 and ROS.
opencv版本问题
iai_kinect2支持indigo和hydro,一定要用opencv2,他里面明确提到了要用 opencv 2.4.x
2.4.9还不行,因为要imencode,我用了2.4.13
上面有关连接中说到了ros如何处理多版本的opencv。
开始tutorial
解决:把原来的find_package(OpenCV REQUIRED)改为
set(OpenCV_DIR “/home/xy/software/opencv-2.4.13/build”)
find_package(OpenCV 2 REQUIRED)
https://blog.csdn.net/explorer9607/article/details/102638819