Exemplo n.º 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.")
Exemplo n.º 2
0
def publish_time(event):
    uptime = Duration()
    uptime.data = event.current_real - start_time
    pub_uptime.publish(uptime)