def on_verboseCheckBox_mouseClick(self, event):
     if self.components.verboseCheckBox.checked:
         setLogger(logging.DEBUG)
         logging.getLogger().setLevel(logging.DEBUG)
         print "Verbose mode on."
         logging.debug("Verbose on.")
     else:
         logging.getLogger().setLevel(logging.CRITICAL)
         print "Verbose mode off."
         logging.debug("Verbose off.")
 def on_verboseCheckBox_mouseClick(self,event):
     if self.components.verboseCheckBox.checked:
         setLogger(logging.DEBUG)
         logging.getLogger().setLevel(logging.DEBUG)
         print 'Verbose mode on.'
         logging.debug('Verbose on.')
     else:
         logging.getLogger().setLevel(logging.CRITICAL)
         print 'Verbose mode off.'
         logging.debug('Verbose off.')
Beispiel #3
0
 parser.add_option('--imuport', '-p', default=1234,
     help="The Port for the IMU socket server, defaults to 1234.")
 parser.add_option('--imuhost', '-m', default='127.0.0.1',
     help="The host for the IMU socket server.")
 parser.add_option('--serialar', '-a', default=None,
     help="The camera to use for the ROS AR tracking.")
 parser.add_option('--highres', '-c', action="store_true", dest="highres",
     default=False,help="Defaults to low res.")
 parser.add_option('--bigmarker', '-n', dest="bigmarker",
     action="store_const",
     const=BIGMARKER,
     default=SMALLMARKER,
     help="Defaults to small marker.")
 options, arguments = parser.parse_args()
 if options.verbose:
     setLogger(logging.DEBUG)
     print "\n\n-------------------------------\n"
     print "VERBOSE MODE."
     print "\n\n-------------------------------\n"
     logging.debug('Enabled DEBUG MODE')
     DEBUG=True
 if(options.outfile==None):
     print "\n\n-------------------------------\n"
     print "Specify the out file (--outfile filename)"
     print "\n\n-------------------------------\n"
     exit()
 try:
     isCorrectFilename(options.outfile);
 except OutFileMustBeh5Extention:
     print "\n\n-------------------------------\n"
     print "The Outfile ({0}) must be specified have an '.h5' extension.".\