00001
00002 import roslib; roslib.load_manifest('rxgraphplus')
00003 import rospy
00004 from std_msgs.msg import String
00005 def talker():
00006 pub = rospy.Publisher('chatter', String)
00007 rospy.init_node('talker')
00008 while not rospy.is_shutdown():
00009 str = "hello world %s"%rospy.get_time()
00010 rospy.loginfo(str)
00011 pub.publish(String(str))
00012 rospy.sleep(1.0)
00013 if __name__ == '__main__':
00014 try:
00015 talker()
00016 except rospy.ROSInterruptException: pass