/// <summary> /// Registers the callback. /// </summary> /// <param name="framePairs">Frame pairs.</param> public void SetCallback(TangoCoordinateFramePair[] framePairs) { m_poseAvailableCallback = new Tango.PoseProvider.TangoService_onPoseAvailable(_OnPoseAvailable); Tango.PoseProvider.SetCallback(framePairs, m_poseAvailableCallback); m_motionTrackingData = new TangoPoseData(); m_areaLearningData = new TangoPoseData(); m_relocalizationData = new TangoPoseData(); }
/// <summary> /// Registers the callback. /// </summary> /// <param name="framePairs">Frame pairs.</param> public virtual void SetCallback(TangoCoordinateFramePair[] framePairs) { m_poseAvailableCallback = new Tango.PoseProvider.TangoService_onPoseAvailable(_OnPoseAvailable); Tango.PoseProvider.SetCallback(framePairs, m_poseAvailableCallback); }