00001 #!/usr/bin/env python 00002 00003 ## 00004 # aria.py is only a node for testing purpose. 00005 # Copyright (c).2012. OWNER: Institute for Software Technology, TU Graz Austria. 00006 # Authors: Safdar Zaman, Gerald Steinbauer. (szaman@ist.tugraz.at, steinbauer@ist.tugraz.at) 00007 # All rights reserved. 00008 # This program is free software: you can redistribute it and/or modify 00009 # it under the terms of the GNU General Public License as published by 00010 # the Free Software Foundation, either version 3 of the License, or 00011 # (at your option) any later version. 00012 # 00013 # This program is distributed in the hope that it will be useful, 00014 # but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 # GNU General Public License for more details. 00017 # 00018 # You should have received a copy of the GNU General Public License 00019 # along with this program. If not, see <http://www.gnu.org/licenses/>. 00020 ## 00021 00022 import roslib; roslib.load_manifest('tug_ist_diagnosis_observers') 00023 import rospy 00024 from std_msgs.msg import String 00025 def test_node(): 00026 rospy.init_node('aria') 00027 pub = rospy.Publisher('aria_node_topic', String) 00028 while not rospy.is_shutdown(): 00029 str = "aria data.." 00030 rospy.loginfo(str) 00031 pub.publish(String(str)) 00032 rospy.sleep(0.1) 00033 if __name__ == '__main__': 00034 try: 00035 test_node() 00036 except rospy.ROSInterruptException: pass 00037