ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Publishers take a little while to register themselves with the master. By creating a publisher and then publishing a message immediately, the publisher has likely not finished registering, so the message will be lost. Try sleeping a little bit before before publishing, or (if appropriate) publishing inside a loop.