Go to the documentation of this file.00001
00002
00003
00004 __author__ = 'Minglong Li'
00005
00006 import node
00007 from std_msgs import String
00008
00009
00010
00011
00012 class Test_node(Node):
00013 def __init__(self):
00014 self.on_received_1 = On_received('hello', String)
00015 spin()
00016
00017
00018
00019
00020
00021 if __name__ == '__main__':
00022 try:
00023 test_node = Node('hello')
00024 on_received_1 = On_received()
00025 on_received_2 = On_received()
00026 test_node.start()
00027 except rospy.ROSInterruptException:
00028 print "Program interrupted before completion"
00029