示例#1
0
        private void StartBodyStream()
        {
            // Init infr buffer
            BodyFrame frame = Body = new BodyFrame();

            frame.Width   = Color.Width;
            frame.Height  = Color.Height;
            frame.RawData = new Body[6]; // FIXME
            frame.Bodies  = new List <NBody>(6);
            frame.Stamp   = new Timestamp();

            AddOnManager.GetInstance().InitFrame(Name, frame);
            Log(frame.ToString());

            // Start Watch
            BodyWatch = new StopwatchAvg();
        }
示例#2
0
        private void StartBodyIndexStream()
        {
            // Get frame description for the infr output
            var description = Sensor.BodyIndexFrameSource.FrameDescription;

            // Init infr buffer
            BodyIndexFrame frame = BodyIndex = new BodyIndexFrame();

            frame.Width  = description.Width;
            frame.Height = description.Height;
            frame.Pixels = new byte[description.LengthInPixels];
            frame.Stamp  = new Timestamp();

            AddOnManager.GetInstance().InitFrame(Name, frame);
            Log(frame.ToString());

            // Start Watch
            BodyIndexWatch = new StopwatchAvg();
        }
示例#3
0
        private void StartColorStream()
        {
            // Get frame description for the infr output
            var description = Sensor.ColorFrameSource.FrameDescription;

            // Init infr buffer
            ColorFrame frame = Color = new ColorFrame();

            frame.Width  = description.Width;
            frame.Height = description.Height;
            frame.Pixels = new byte[description.LengthInPixels * 4];
            frame.Stamp  = new Timestamp();
            frame.Fps    = 15;

            AddOnManager.GetInstance().InitFrame(Name, frame);
            Log(frame.ToString());

            // Start Watch
            ColorWatch = new StopwatchAvg();
        }
示例#4
0
    private void StartBodyStream() {

      // Init infr buffer
      BodyFrame frame = Body = new BodyFrame();
      frame.Width   = Color.Width;
      frame.Height  = Color.Height;
      frame.RawData = new Body[6]; // FIXME
      frame.Bodies  = new List<NBody>(6);
      frame.Stamp   = new Timestamp();

      AddOnManager.GetInstance().InitFrame(Name, frame);
      Log(frame.ToString());

      // Start Watch
      BodyWatch = new StopwatchAvg();
    }
示例#5
0
    private void StartBodyIndexStream() {
      // Get frame description for the infr output
      var description = Sensor.BodyIndexFrameSource.FrameDescription;

      // Init infr buffer
      BodyIndexFrame frame = BodyIndex = new BodyIndexFrame();
      frame.Width = description.Width;
      frame.Height = description.Height;
      frame.Pixels = new byte[description.LengthInPixels];
      frame.Stamp = new Timestamp();

      AddOnManager.GetInstance().InitFrame(Name, frame);
      Log(frame.ToString());

      // Start Watch
      BodyIndexWatch = new StopwatchAvg();
    }
示例#6
0
    private void StartColorStream() {
      // Get frame description for the infr output
      var description = Sensor.ColorFrameSource.FrameDescription;

      // Init infr buffer
      ColorFrame frame = Color = new ColorFrame();
      frame.Width = description.Width;
      frame.Height = description.Height;
      frame.Pixels = new byte[description.LengthInPixels * 4];
      frame.Stamp = new Timestamp();
      frame.Fps = 15;

      AddOnManager.GetInstance().InitFrame(Name, frame);
      Log(frame.ToString());

      // Start Watch
      ColorWatch = new StopwatchAvg();
    }