How to input gazebo camera feed into opencv python?

asked 2021-02-13 06:23:29 -0600 gravatar image

updated 2022-06-05 11:43:07 -0600

lucasw gravatar image

I followed this ( to simulate iris quadcopter and give it commands using dronekit on python. I use 'cap = cv2.VideoCaptue(0)' to input my video feed onto python.

How do I take the simulated camera's feed on the iris quadcopter and give it to opencv?

My end goal is to test my code in an simulated environment.

edit retag flag offensive close merge delete


Hey, were u able to solve this?? I am stuck in this problem, too! I have the ardupilot gazebo package and only the model.sdf file for the IRIS 3DR drone in my Ubuntu 16 ros kinetic with gazebo 9. Also, I tried getting the feed from the gazebo's topic visualization, but i don't think that's very useful for opencv processing. I added the plugin of the camera, but that only gives me errors. So, if u found the solution, please do share. Thanks!

ssaniljainn gravatar image ssaniljainn  ( 2021-02-26 01:28:11 -0600 )edit