Beispiel #1
0
def print_time(event):
    uptime = Duration()
    uptime.data = event.current_real - start_time
    rospy.logdebug("Runtime has reached: " + str(int(uptime.data.secs / 60)) +
                   " minutes.")
Beispiel #2
0
def publish_time(event):
    uptime = Duration()
    uptime.data = event.current_real - start_time
    pub_uptime.publish(uptime)