rospyOverviewTime - ROS Wiki - Robot Operating System
rospy. get_time() Get the current time in float seconds. seconds = rospy. get_time() Time zero. When using simulated Clock time, get_rostime() returns time 0 until first message has been received on clock, so 0 means essentially that the client does not know clock time yet. A value of 0 should therefore be treated differently, such as looping over get_rostime() until non-zero is returned.