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


tug_ist_diagnosis_observers
Author(s): Safdar Zaman, Gerald Steinbauer
autogenerated on Mon Jan 6 2014 11:51:27