Ejemplo n.º 1
0
        private static void oscServer_BundleReceived(object sender, OscBundleReceivedEventArgs e)
        {
            sBundlesReceivedCount++;

            OscBundle bundle = e.Bundle;
            Console.WriteLine(string.Format("\nBundle Received [{0}:{1}]: Nested Bundles: {2} Nested Messages: {3}", bundle.SourceEndPoint.Address, bundle.TimeStamp, bundle.Bundles.Count, bundle.Messages.Count));
            Console.WriteLine("Total Bundles Received: {0}", sBundlesReceivedCount);
        }
Ejemplo n.º 2
0
 private void Server_BundleReceived(object sender, OscBundleReceivedEventArgs e)
 {
     debug("Unhandled Bundle Received");
 }
Ejemplo n.º 3
0
 static void sOscServer_BundleReceived(object sender, OscBundleReceivedEventArgs e)
 {
     Console.WriteLine(string.Format("\nBundle Received [{0}]: {1} Message Count: {2}", e.Bundle.SourceEndPoint.Address, e.Bundle.Address, e.Bundle.Messages.Length));
 }
 private static void osc_receiver_BundleReceived(object sender, OscBundleReceivedEventArgs e)
 {
     OscBundle bundle = e.Bundle;
     Debug.WriteLine(string.Format("\nBundle Received [{0}:{1}]: Nested Bundles: {2} Nested Messages: {3}", bundle.SourceEndPoint.Address, bundle.TimeStamp, bundle.Bundles.Count, bundle.Messages.Count));
 }
Ejemplo n.º 5
0
 //OSC Methods
 void kinect2Updated(object sender, OscBundleReceivedEventArgs e)
 {
 }
Ejemplo n.º 6
0
        void kinect1Updated(object sender, OscBundleReceivedEventArgs e)
        {
            userPosKinect1.X = convert((float)e.Bundle.Messages[1].Data[0]);
            userPosKinect1.Y = convert((float)e.Bundle.Messages[1].Data[1]);
            userPosKinect1.Z = convert((float)e.Bundle.Messages[1].Data[2]);

            //Console.WriteLine("Kinect 1 Updated X: " + e.Bundle.Messages[1].Data.Length);

            if (userPosKinect1.X != 0.0f && userPosKinect1.Y != 0.0f && userPosKinect1.Z != 2700.0f)
            {
                trackingRemote1 = true;
                angleYRemote1 = getAngleTrig(userPosKinect1.Z, userPosKinect1.X) + MathHelper.ToRadians(shiftAngleRemote1);

                //Console.WriteLine("Remote 1 Kinect Angle: " + +MathHelper.ToDegrees(RotationYWorld));
            }
            else
            {
                trackingRemote1 = false;
            }
        }
 private void osc_BundleReceived(object sender, OscBundleReceivedEventArgs e)
 {
 }
Ejemplo n.º 8
0
        private void oscCmdReceiver_BundleReceived(object sender, OscBundleReceivedEventArgs e)
        {
            sBundlesReceivedCount++;

            OscBundle bundle = e.Bundle;

            this.Dispatcher.Invoke(DispatcherPriority.Normal, new Action(delegate
            {
                //statusIndicator.Fill = new SolidColorBrush(Colors.Green);
            }));
            Console.WriteLine(string.Format("\nBundle Received [{0}:{1}]: Nested Bundles: {2} Nested Messages: {3}", bundle.SourceEndPoint.Address, bundle.TimeStamp, bundle.Bundles.Count, bundle.Messages.Count));
            Console.WriteLine("Total Bundles Received: {0}", sBundlesReceivedCount);
        }