Example #1
0
 public Stream(Boolean shouldSendCloud, Boolean shouldSendSkeleton, IPAddress ipAdress, int cloudPort, int maxNumberOfPoints, int skullPort, int numberOfVerticesToSkip)
 {
     kinect = new Kinect();
     /* TODO : avoid senders initialization if should not send */
     pointsSender   = new PointsSender(ipAdress, cloudPort, maxNumberOfPoints, numberOfVerticesToSkip);
     skullSender    = new SkullSender(ipAdress, skullPort);
     frameProcessor = new FrameProcessor(shouldSendCloud, shouldSendSkeleton, pointsSender, skullSender);
 }
Example #2
0
        public FrameProcessor(Boolean shouldSendCloud, Boolean shouldSendSkeleton, PointsSender pointsSender, SkullSender skullSender)
        {
            this.shouldSendCloud    = shouldSendCloud;
            this.shouldSendSkeleton = shouldSendSkeleton;

            this.pointsSender = pointsSender;
            this.skullSender  = skullSender;

            initializationDone = false;
            coordinateMapper   = KinectSensor.GetDefault().CoordinateMapper;
        }