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

This is normal.

Your code starts publishing right away, but in the background the two nodes first have to find each other and handle out a connection. Until that is done the messages are published to nowhere.

You can check when there is a connection by using pub.getNumSubscribers().