ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Is ROS Kinetic compatible with libopencv-dev-2.4.9?

asked 2017-04-04 01:05:25 -0500

sam26 gravatar image

updated 2017-04-04 01:06:02 -0500

The REP link suggests to use opencv 3.1.x with ROS Kinetic. However, since the system package libopencv-dev 3.1.x version isn't available in the upstream ubuntu repository yet, I had installed libopencv-dev 2.4.9 which was already in my cache and implemented cv_bridge tutorial. It seemed to be working fine without any issues.

  1. So, can I safely assume that ROS Kinetic is compatible with opencv2 as well or is there any other check I need to look out for which would break this compatibility that I'm assuming ?

  2. and if version 3.1.x is a must, can I build Opencv 3.1 with CUDA support as documented here?

Thank you in advance.

PS: I am using Ubuntu 16.04 , ARM

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-04-04 01:15:23 -0500

ahendrix gravatar image

ROS packages a custom version of OpenCV3 for Kinetic; it does not use the system version. The opencv3 wiki page describes this and the reasoning behind it in more detail.

I don't think the pre-compiled version of OpenCV3 will have CUDA support, since the pre-built binaries are typically built for the lowest common denominator platform.

Building OpenCV3 from source will probably work, but keep in mind that if you want to avoid ABI breakages and the very strange crashes that they can cause, you'll also need to build everything that depends on OpenCV3 from source, to make sure that it's compatible with your version. At a minimum, this will include the cv_bridge, image_pipeline and image_transport packages.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-04-04 01:05:25 -0500

Seen: 571 times

Last updated: Apr 04 '17