Using Rospy to check on empty topic
Hi,
I want to code a simple publisher and subscriber. However, I realized that whenever Ros is subscribing to a topic, e.g.:
rospy.subscriber("/chatter",string,callback)
it will always wait for the topic in the callback function. In this example, lets assume there is no '/chatter' topic published and the user himself had type the wrong topic. I wish to create a some kind of warning to users that warn them regarding "chatter" has not yet been publish or empty. How can I do that?