Пример #1
0
        private async Task StartSLAM()
        {
            IsSLAMOn = true;
            string temp = "";
            await Task.Run(() => RealsenseControl.StartSLAM(ref temp)).ConfigureAwait(false);

            RealsenseState           = temp;
            SLAMPointCloud           = new PointGeometry3D();
            SLAMPoseInfo             = new LineGeometry3D();
            UpdateSLAMPointCloudTask = Task.Run(() => UpdateSLAMPointCloud());
            SLAMReconTaskAsync       = Task.Run(() => SLAMRecon());
        }
Пример #2
0
        private void StartSLAM()
        {
            IsSLAMOn = true;
            string temp = "";

            RealsenseControl.StartSLAM(ref temp);
            RealsenseState = temp;
            Thread.Sleep(2000);
            SLAMPointCloud           = new PointGeometry3D();
            SLAMPoseInfo             = new LineGeometry3D();
            UpdateSLAMPointCloudTask = Task.Run(() => UpdateSLAMPointCloud());
        }