// Start the Kinect2Server app private int StartKinectServer() { // start Kinect Server kinectServer = new KinectServer(); kinectServer.RunKinectServer(); float fTimeToWait = Time.realtimeSinceStartup + 10f; // allow 10 seconds time-out int iPing = 0; while (Time.realtimeSinceStartup < fTimeToWait) { iPing = KinectWrapper.PingKinect2Server(); if (iPing == 12345678) { break; } } if (iPing == 12345678) { iPing = 0; } return(iPing); }
public RoomPointCloudView() { InitializeComponent(); kinectServer = KinectServer.Instance; serverMessageProcessor = ServerMessageProcessor.Instance; serverMessageProcessor.BodyMessageArrived += BodyDataArrived; }
public DefineWorkspaceView() { DataContext = this; // TODO: set width, height from framedescription data provided by client depthBitmap = new WriteableBitmap(512, 424, 96.0, 96.0, PixelFormats.Gray8, null); kinectServer = KinectServer.Instance; serverMessageProcessor = ServerMessageProcessor.Instance; InitializeComponent(); }
// Start the Kinect2Server app private int StartKinectServer() { // start Kinect Server kinectServer = new KinectServer(); kinectServer.RunKinectServer(); float fTimeToWait = Time.realtimeSinceStartup + 10f; // allow 10 seconds time-out int iPing = 0; while(Time.realtimeSinceStartup < fTimeToWait) { iPing = KinectWrapper.PingKinect2Server(); if(iPing == 12345678) break; } if(iPing == 12345678) { iPing = 0; } return iPing; }