Go to the documentation of this file.00001 import roslib
00002 roslib.load_manifest('trigger_msgs')
00003 import sys
00004 import rospy
00005
00006 import trigger_msgs.msg
00007
00008 rospy.init_node("trigger", anonymous=True)
00009
00010 left_initial_pose00 = rospy.Publisher("left_initial_pose00", trigger_msgs.msg.Trigger, latch = True)
00011 right_initial_pose00 = rospy.Publisher("right_initial_pose00", trigger_msgs.msg.Trigger, latch = True)
00012 head_initial_pose00 = rospy.Publisher("head_initial_pose00", trigger_msgs.msg.Trigger, latch = True)
00013
00014
00015 r = rospy.Rate(60/60.)
00016 head_initial_pose00.publish(rospy.get_rostime() + rospy.Duration(rospy.get_param("~delay", 1)), rospy.get_param("~event", ""))
00017 left_initial_pose00.publish(rospy.get_rostime() + rospy.Duration(rospy.get_param("~delay", 10)), rospy.get_param("~event", ""))
00018 right_initial_pose00.publish(rospy.get_rostime() + rospy.Duration(rospy.get_param("~delay", 10)), rospy.get_param("~event", ""))
00019 r.sleep()
00020 r.sleep()
00021 r.sleep()
00022