コード例 #1
0
        /// <summary>Saves SLAM learning results.</summary>
        /// <param name="outputFileName">File path of map for save.</param>
        /// <returns>Return save result of success or fail. True is saved.</returns>
        public SurfaceThumbnail SaveSurfaceData(string outputFileName)
        {
            SurfaceThumbnail surfaceThumbnail      = null;
            ulong            SurfaceThumbnail_cPtr = 0;

            SurfaceThumbnail_cPtr = NativeAPI.TrackerManager_saveSurfaceData(outputFileName);

            if (SurfaceThumbnail_cPtr == 0)
            {
                return(null);
            }
            else
            {
                surfaceThumbnail = new SurfaceThumbnail(SurfaceThumbnail_cPtr);
            }

            return(surfaceThumbnail);
        }