ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This may not be the complete answer to what is going on, but what I did to resolve the issue was to move the creation of the named openCV window(s) to the callback method. I set a flag in the object __init__ function and if that flag is set when the callback function executes I create the windows, and perform the associated initialization on the windows, clear the flag so the creation only happens one time.

This has things working again, both imshow() and waitKey() work as before.

I need to apply this change to my original Python code to make sure that there is nothing else similar that I need to do, like maybe things related to the mouse.

But if you have a similar issue with Kinetic and OpenCV you might try a similar approach.