How to recognize when tf has stopped publishing?
I use /tf topic to calculate a parameter with C++. I use what is written in the tf tutorial to listen to the transforms. I use a callback with "ros::spinOnce(); rate.sleep();" so only when I press Ctrl+C the program stops. My problem is that I need to know when I do not have publishing tf; that means when the /tf stops publishing. Is there any function that checks the existence of /tf and for example becomes False when the /tf is not published anymore?
Thanks really cagatay it is working!!