Go to the documentation of this file.00001
00002 import roslib; roslib.load_manifest('cob_relayboard')
00003 import rospy
00004 import time
00005 from cob_relayboard.msg import EmergencyStopState
00006
00007
00008 def relayboard_sim():
00009 rospy.init_node('cob_relayboard_sim')
00010
00011
00012 pub_em_stop = rospy.Publisher('/emergency_stop_state', EmergencyStopState)
00013 msg_em = EmergencyStopState()
00014 msg_em.emergency_button_stop = False
00015 msg_em.scanner_stop = False
00016 msg_em.emergency_state = 0
00017
00018
00019
00020
00021
00022
00023
00024
00025 while not rospy.is_shutdown():
00026 pub_em_stop.publish(msg_em)
00027
00028 rospy.sleep(1.0)
00029
00030 if __name__ == '__main__':
00031 try:
00032 relayboard_sim()
00033 except rospy.ROSInterruptException:
00034 print "Interupted"
00035 pass