def handle_set_mode(self):
     print "Selected=",self.allowed_modes[self.control_mode], ' id=', self.control_mode
     self.label.setText("Flor Command : "+self.allowed_modes[self.control_mode]+"("+str(self.control_mode)+")")
     mode_msg = VigirControlModeCommand()
     mode_msg.header.stamp = rospy.Time.now()
     mode_msg.requested_control_mode  = self.control_mode
     print mode_msg
     self.mode_pub.publish(mode_msg)
 def handle_stop(self):
     # FLOR_STOP command
     if (self.stop_enable.isChecked()):
         self.clearSelections()
         self.selection_label.setText("Flor Selected  : ")
         self.control_mode = self.mode_ids['stop']
         print "Selected=",self.allowed_modes[self.control_mode], ' id=', self.control_mode
         #self.list_box
         self.selection_label.setText("Flor Selected  : "+self.allowed_modes[self.control_mode]+"("+str(self.control_mode)+")")
         self.label.setText("Flor Command : "+self.allowed_modes[self.control_mode]+"("+str(self.control_mode)+")")
         mode_msg = VigirControlModeCommand()
         mode_msg.header.stamp = rospy.Time.now()
         mode_msg.requested_control_mode     =  self.control_mode
         print mode_msg
         self.mode_pub.publish(mode_msg)
         
     else:
         print "Stop disabled!"