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

You create the broadcaster in every call of the callback, use it immediately and destroys it immediately. Connecting to the listeners takes some time, so it's possible that you destroy the publisher before it could send something. So create a single publisher and use it in every callback. I'm not sure how the additional broadcaster changes something.