public ControlWindow() { InitializeComponent(); servoManager = new ServoManager(servoConfigFileName); servoManager.ConnectToHardware(); UpdateConnectedTextblock(servoManager.IsConnected(), servoHardwareState); ariaManager = new AriaManager(); ariaManager.InitializeAria(); UpdateConnectedTextblock(ariaManager.IsConnected(), ariaHardwareState); robotSpeech = new RobotSpeech(servoManager); robotEyes = new RobotEyes(); robotEyes.InitializeHardware(); personTracking = new PersonTracking(servoManager, ariaManager); sequenceProcessor = new SequenceProcessor(servoManager, ariaManager, robotSpeech, robotEyes, sequenceFileName); kinectManager = new KinectManager(sequenceProcessor, personTracking, robotSpeech); kinectManager.InitializeKinect(); UpdateConnectedTextblock(kinectManager.IsConnected(), kinectHardwareState); UpdateMotionEnabledDisplay(); logUpdateTimer.Tick += new EventHandler(logUpdateTimer_Tick); logUpdateTimer.Interval = new TimeSpan(0, 0, 0, 0, 500); logUpdateTimer.Start(); }
private void InitializeHardware_Click(object sender, RoutedEventArgs e) { servoManager.LoadServoConfiguration(servoConfigFileName, false); servoManager.ConnectToHardware(); UpdateConnectedTextblock(servoManager.IsConnected(), servoHardwareState); kinectManager.InitializeKinect(); UpdateConnectedTextblock(kinectManager.IsConnected(), kinectHardwareState); }
public ControlWindow() { InitializeComponent(); servoManager = new ServoManager(servoConfigFileName); servoManager.ConnectToHardware(); UpdateConnectedTextblock(servoManager.IsConnected(), servoHardwareState); sequenceProcessor = new SequenceProcessor(servoManager, sequenceFileName); kinectManager = new KinectManager(sequenceProcessor); kinectManager.InitializeKinect(); UpdateConnectedTextblock(kinectManager.IsConnected(), kinectHardwareState); logUpdateTimer.Tick += new EventHandler(logUpdateTimer_Tick); logUpdateTimer.Interval = new TimeSpan(0, 0, 0, 0, 500); logUpdateTimer.Start(); }