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

I've experienced the exact same problem and I noticed I was using the wait_for_message() method before initializing the node using rospy.init_node().

So, the solution would be calling the init_node() method before any publishing/subscribing (which is done implicitly by the wait_for_message() method). Hope this helps!