Use cudaMallocManaged of CUDA in OpenCV 3.2.0

sad to hear that. there seems to be a special hell for ROS users …

however, still noone can help you without seeing your exact code / errors,
please update your question with this