ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I think the problem is that you put the rospy
and publisher initialization inside your while loop. You should only call rospy.init_node
once, and the Publisher
objects should only be initialized once. If you move these things above where you start the while loop, it should work, or at least properly publish messages.