예제 #1
0
        private void TangoAddListeners()
        {
            var pairs = FramePairsInitializer.GetPairs();
            var tangoUpdateListener = new TangoUpdateListener(this);

            tango.ConnectListener(pairs, tangoUpdateListener);
        }
예제 #2
0
        private void startupTango()
        {
            var framePairs = new List <TangoCoordinateFramePair>()
            {
                new TangoCoordinateFramePair(
                    TangoPoseData.CoordinateFrameStartOfService,
                    TangoPoseData.CoordinateFrameDevice)
            };

            _tangoUpdateListener = new TangoUpdateListener();
            _tango.ConnectListener(framePairs, _tangoUpdateListener);
        }
예제 #3
0
        private void SetTangoListeners()
        {
            // Select coordinate frame pairs
            List <TangoCoordinateFramePair> framePairs = new List <TangoCoordinateFramePair>();

            framePairs.Add(new TangoCoordinateFramePair(TangoPoseData.CoordinateFrameStartOfService, TangoPoseData.CoordinateFrameDevice));

            // Add a listener for Tango pose data
            var listener = new TangoProxy.TangoListener(this);

            listener.OnPoseAvailableCallback = OnPoseAvailable;
            listener.OnTangoEventCallBack    = OnTangoEvent;
            mTango.ConnectListener(framePairs, listener);
        }
예제 #4
0
        private void SetTangoListeners()
        {
            // Configure the Tango coordinate frame pair

            framePairs.Add(new TangoCoordinateFramePair(TangoPoseData.CoordinateFrameStartOfService, TangoPoseData.CoordinateFrameDevice));
            // Listen for new Tango data

            var listener = new TangoProxy.TangoListener(this);

            listener.OnPoseAvailableCallback  = OnPoseAvailable;
            listener.OnXyzIjAvailableCallBack = OnXyzIjAvailable;
            listener.OnTangoEventCallBack     = OnTangoEvent;

            mTango.ConnectListener(framePairs, listener);
        }
예제 #5
0
        private void SetUpTangoListeners()
        {
            // Set Tango Listeners for Poses Device wrt Start of Service, Device wrt
            // ADF and Start of Service wrt ADF
            List <TangoCoordinateFramePair> framePairs = new List <TangoCoordinateFramePair>();

            framePairs.Add(new TangoCoordinateFramePair(TangoPoseData.CoordinateFrameStartOfService, TangoPoseData.CoordinateFrameDevice));
            framePairs.Add(new TangoCoordinateFramePair(TangoPoseData.CoordinateFrameAreaDescription, TangoPoseData.CoordinateFrameDevice));
            framePairs.Add(new TangoCoordinateFramePair(TangoPoseData.CoordinateFrameAreaDescription, TangoPoseData.CoordinateFrameStartOfService));
            var listener = new TangoProxy.TangoListener(this);

            listener.OnPoseAvailableCallback = OnPoseAvailable;
            listener.OnTangoEventCallBack    = OnTangoEvent;

            mTango.ConnectListener(framePairs, listener);
        }
예제 #6
0
        /// <summary>
        /// Set up the TangoConfig and the listeners for the Tango service, then
        /// begin using the Motion Tracking API. This is called in response to the
        /// user clicking the 'Start' Button.
        /// </summary>
        private void SetTangoListeners()
        {
            // Lock configuration and connect to Tango
            // Select coordinate frame pair

            // Original line in class:  final java.Util.ArrayList<com.google.atap.tangoservice.TangoCoordinateFramePair> framePairs = new java.Util.ArrayList<com.google.atap.tangoservice.TangoCoordinateFramePair>();
            List <TangoCoordinateFramePair> framePairs = new List <TangoCoordinateFramePair>();

            framePairs.Add(new TangoCoordinateFramePair(TangoPoseData.CoordinateFrameStartOfService, TangoPoseData.CoordinateFrameDevice));
            // Listen for new Tango data
            var listener = new  TangoProxy.TangoListener(this);

            listener.OnPoseAvailableCallback = OnPoseAvailable;
            listener.OnTangoEventCallBack    = OnTangoEvent;

            mTango.ConnectListener(framePairs, listener);
        }