ROS Kinetic OpenCV3.2.0 Contrib and CUDA
Hallo community,
I working currently on a vision problem and want to use cuda to fulfill some real-time contraints. To solve the vision problem I want to utilize ROS Kinetic and OpenCV.
My question is now is it possible to replace the opencv version which is delivered with ROS Kinectic (OpenCV3.2.0) with the same opencv version with enabled CUDA?
The most information how to setup and compile the correct opencv version can be found on the ROS wiki page for the opencv3 package I guess (wiki.ros.org/opencv3 section 5. Build the package). Here is described how to checkout the right repos and modify the CMAKE file in the right way. For CUDA I have to add the -DWITH_CUDA flag. Everthing right until now?
Now the complex part: Which software have to be uninstalled before installing the own compiled version and where I have to install it, so ROS can work with it naturally like with the opencv libs which are delivered with ROS Kinetic?
My second question is motivated by a statement which I also have found on the wiki page from ROS opencv3 package. There is stated that with opencv 3.2.0 it is now possible to build opencv contrib with installed opencv. This seems interesting for me because I want to modify or better add functionality to a algorithm which is implemented in opencv contrib rgbd.
Is it possible to build only the opencv contrib rgbd package as debug and working on it? At the moment I have no idea how to do it, so will be great when you can help me out.
When you have some question on your side, feel free to ask.
System: Ubuntu 16.04, CUDA8.0, ROS Kinetic, OpenCV 3.2.0
best regards,
Manuel
What I would do:
Did you get how to solve it, this is a good question.
@waschbaer, please do not post an answer here, if you have a question or a comment, thank you !
I am facing the same problem
please help me how to fix it?
cv_bridge
, build the source and link them to your OpenCV version.I built my own OpenCV, how to link package of ros with my opencv? please help me thanks in advance
It should be something like this:
catkin_make VERBOSE=1 --cmake-args -DOpenCV_DIR=your_opencv_build_dir
catkin_make VERBOSE=1 --cmake-args -DOpenCV_DIR=your_opencv_build_dir/install/share/OpenCV
I don't remember exactly which OpenCV path.
VERBOSE=1
to see if everything are correctly linked. Not sure if--cmake-args
is needed or not...Thanks a lot for your helping