ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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()
.