robot_description_saver.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 
00003 import rospy
00004 from std_msgs.msg import String
00005 
00006 rospy.init_node("robot_description_saver")
00007 
00008 robot_description = rospy.get_param("robot_description")
00009 rate = rospy.get_param("~rate", 0.1)      #0.1Hz
00010 pub = rospy.Publisher("robot_description", String)
00011 
00012 def timerCallback(event):
00013     global pub, robot_description
00014     pub.publish(String(data=robot_description))
00015 
00016 timer = rospy.Timer(rospy.Duration(1.0 / rate), timerCallback)
00017 rospy.spin()
00018 
00019     


jsk_data
Author(s):
autogenerated on Fri Sep 8 2017 03:39:16