VideoCapture not obtaining newest frames when I run read()
Hey guys, I'm using a VideoCapture from a C920 to read() the latest/newest images from the camera. I've noticed that unless I'm constantly looping the VideoCapture.read(), that I don't get the newest images but something in a buffer since the picture is clearly "older" than what the current frame should be.
I'm using this with ROS/mavros to command a multicopter to move, if that relates to anything. I might be able to get some code here if what I said doesn't make sense. Has anyone heard of this happening? Is there another way to grab the newest image from the camera?
Thanks!