Esempio n. 1
0
        /// <summary>
        /// Set the C callback for the Tango pose interface.
        /// </summary>
        /// <param name="framePairs">Passed in to the C API.</param>
        /// <param name="callback">Callback method.</param>
        internal static void SetCallback(TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback)
        {
            int returnValue = API.TangoService_connectOnPoseAvailable(framePairs.Length, framePairs, callback);

            if (returnValue != Common.ErrorType.TANGO_SUCCESS)
            {
                Debug.Log(CLASS_NAME + ".SetCallback() Callback was not set!");
            }
            else
            {
                Debug.Log(CLASS_NAME + ".SetCallback() OnPose callback was set!");
            }
        }
Esempio n. 2
0
 public static int TangoService_connectOnPoseAvailable(
     int count, TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback)
 {
     return(Common.ErrorType.TANGO_SUCCESS);
 }
Esempio n. 3
0
 public static extern int TangoService_connectOnPoseAvailable(
     int count, TangoCoordinateFramePair[] framePairs, APIOnPoseAvailable callback);