private void TangoAddListeners() { var pairs = FramePairsInitializer.GetPairs(); var tangoUpdateListener = new TangoUpdateListener(this); tango.ConnectListener(pairs, tangoUpdateListener); }
private void startupTango() { var framePairs = new List <TangoCoordinateFramePair>() { new TangoCoordinateFramePair( TangoPoseData.CoordinateFrameStartOfService, TangoPoseData.CoordinateFrameDevice) }; _tangoUpdateListener = new TangoUpdateListener(); _tango.ConnectListener(framePairs, _tangoUpdateListener); }
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); }
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); }
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); }
/// <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); }