OpenCV and ROS2
I've checked all the related questions here and I still wasn't able to get this example to run. I apologize in advance if the solution was right in front of me and if that offended anyone.
Problem description: I run Ubuntu 20.04 and ROS2 foxy, installed OpenCV 4.5.3.56, via pip, everything is in the system python (no venv/conda), I wanted to get this minimal example of an OpenCV publisher and subscriber to run to get my webcam stream from one node to another. For installation the debian package method was chosen.
The example is found here, I did everything as it is described:
https://automaticaddison.com/getting-started-with-opencv-in-ros-2-foxy-fitzroy-python/
But the step with
rosdep install -i --from-path src --rosdistro foxy -y
returns
ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies: cv_basics: Cannot locate rosdep definition for [opencv2]
Question: How do I make this run? Are there any kind of examples for ROS2 where any somewhat modern version of OpenCV and Python/C++ works?
My greatest fear is that I have to use OpenCV 3.2 with Python 2.7 or something like that. Please tell me this is not the case anymore for ROS2.