ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
![]() | 1 | initial version |
You subscribe (in the image_converter constructor) before the node was initialized. The correct way is to just switch the two commands:
def main(args):
rospy.init_node('image_converter', anonymous=True)
ic = image_converter()