test_node.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # coding=utf-8
00003 
00004 __author__ = 'Minglong Li'
00005 
00006 import node
00007 from std_msgs import String
00008 
00009 #把node类拆开
00010 
00011 
00012 class Test_node(Node):
00013     def __init__(self):
00014         self.on_received_1 = On_received('hello', String)
00015         spin()
00016 
00017     #def self.on_received_1.action(self, msg):
00018         #print msg.data
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 


micros_mars_task_alloc
Author(s): Minglong Li , Xiaodong Yi , Yanzhen Wang , Zhongxuan Cai
autogenerated on Mon Jul 1 2019 19:55:03