Пример #1
0
        private async Task StopSLAM()
        {
            await Task.Run(() => RealsenseControl.StopSLAM());

            IsSLAMOn = false;
            if (UpdateSLAMPointCloudTask != null)
            {
                await UpdateSLAMPointCloudTask;
            }
            if (SLAMReconTaskAsync != null)
            {
                await SLAMReconTaskAsync;
            }
            //SLAMReconTask.Wait();
        }
Пример #2
0
 private void StopSLAM()
 {
     RealsenseControl.StopSLAM();
     IsSLAMOn = false;
     UpdateSLAMPointCloudTask.Wait();
 }