wait for publisher to get started
I have one node which is receiving data from socket and publishing on some topic. I have another node which is sending data through socket to first node. Now I want second node to block until my first node is started. One way to wait is create subscriber for the topic and call getPublishers()
but I dont want to create publisher. How do I wait?
Would rospy.wait_for_message help? This does implicitly create a subscriber, but it does give you a timeout and is blocking for that timeout length until a message is received.
Note there is also a C++ implementation
it wont publish anything until I send it. I just need to check whether publisher is registered.