ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You only want to run init_node and create the subscriber once at initialization time, not every time through your update loop: move camera_feedback() up out of the while not rospy.is_shutdown()
. The rospy.spin won't return until you hit ctrl-c, so that needs to be removed. In the while loop you could sleep using another Rate.