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

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()