ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I've seen this same error writing a node in Python. The problem was that, before cv2.imencode(), one of the images was None (the NULL equivalent in Python). So check that your images are not NULL or 0xN or whatever alike. Good luck!