ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

Try sleeping a bit before sending the message, or sending the message multiple times. This is happening because your publisher probably hasn't finished registering itself when you send the message. In this particular situation though, it might make more sense to do this as an action or a service, which both have ways of ensuring the other end is connected, and allow the other end to send feedback.