42 from rospy_tutorials.msg
import HeaderString
44 NAME =
'listener_header' 49 timestamp = header.stamp.to_sec()
50 print rospy.get_caller_id(), header.seq,
"I just heard that %s at %12f"%(chatter, timestamp)
53 rospy.Subscriber(
"chatter_header", HeaderString, callback)
54 rospy.init_node(NAME, anonymous=
True)
57 if __name__ ==
'__main__':
60 except KeyboardInterrupt, e: