public MainWindow(string ip, int port, int condition) { count = 1; this.ip = ip; this.port = port; this.condition = condition; ready = true; this.Background = new SolidColorBrush(Colors.LightGreen); InitializeComponent(); this.tts = new TextToSpeechProxy(ip, port); gazeControl = new GazeControl(ip, port); this.led = new LedsProxy(ip, port); led.off("ChestLeds"); led.on("ChestLedsGreen"); started = false; }
public MainWindow(string ip, int port, int condition) { this.ip = ip; this.port = port; this.condition = condition; InitializeComponent(); completeCheck = new Check.Check(); ready = true; this.Background = new SolidColorBrush(Colors.LightGreen); gazeControl = new GazeControl(ip, port); kinect = new HCI.GAS.Kinect.KinectAudio("XMLs\\Thoughtfulness_Grammar.xml",ip,port); led = new LedsProxy(ip, port); led.off("ChestLeds"); led.on("ChestLedsGreen"); //TODO: check if auto has been depreciated. kinect.auto = false; end = false; tts = new TextToSpeechProxy(ip, port); }
public void task() { this.Background = new SolidColorBrush(Colors.LightBlue); motion = new MotionProxy(ip, port); tts = new TextToSpeechProxy(ip, port); bezierMotion = new Bezier(ip, port); string filename = "Task1--" + DateTime.Now.ToString("MM-dd-hh-mm") + ".txt"; logfile = new Log(filename, "Task 1 -- Thinking"); logfile.logCondition(condition); try { gazeControl = new GazeControl(ip, port); //The file should be in the output box kinect = new KinectAudio("XMLs\\Thinking_Grammar.xml", ip, port); } catch (IOException) { Console.WriteLine("Kinect Not Connected"); } taskThread = new Thread(new ThreadStart(startTask)); end = false; taskThread.Start(); }
public void task() { string filename = "Task4--" + DateTime.Now.ToString("MM-dd-hh-mm") + ".txt"; logfile = new Log(filename, "Task 4 -- Turn Taking"); logfile.logCondition(condition); try { gazeControl = new GazeControl(ip, port); kinect = new HCI.GAS.Kinect.KinectAudio("XMLs\\Turntaking_Grammar.xml", ip, port); kinect.auto = false; } catch (IOException) { Console.WriteLine("Kinect Not Connected"); } end = false; taskThread = new Thread(new ThreadStart(startTask)); this.Background = new SolidColorBrush(Colors.LightBlue); taskThread.Start(); }