ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
I have noticed similar issues even with ROS nodes: if you log a message or publish on a topic right before shutting down, it frequently gets lost.
I hate to say it, but my only suggestion is a brief sleep (maybe half a second) after the messages and before terminating the process.