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