【问题标题】:Hololens Perception Simulation sample test crashes deviceHololens 感知模拟示例测试使设备崩溃
【发布时间】:2018-12-05 04:50:02
【问题描述】:

感知模拟的示例代码使我的设备崩溃。该设备确实响应语音命令,但对手势没有响应,也没有视觉效果。我每次都必须使用 WDR 重置它

文档链接 https://docs.microsoft.com/en-us/windows/mixed-reality/perception-simulation

这里是源代码。

class Program
{
    static void Main(string[] args)
    {
        Task.Run(async () =>
        {
            try
            {
                RestSimulationStreamSink sink = await RestSimulationStreamSink.Create(
                    // use the IP address for your device/emulator
                    new Uri("http://127.0.0.1:10080"),
                    // no credentials are needed for the emulator
                    new System.Net.NetworkCredential("snarain", "snarain"),
                    // normal priorty
                    true,
                    // cancel token
                    new System.Threading.CancellationToken());

                IPerceptionSimulationManager manager = PerceptionSimulationManager.CreatePerceptionSimulationManager(sink);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
            }
        });

        // If main exits, the process exits.  
        Console.WriteLine("Press any key to exit...");
        Console.ReadLine();
    }
}

【问题讨论】:

    标签: hololens


    【解决方案1】:

    经过一周的故障排除后,我注意到控制模式切换到模拟模式,该模式会暂停所有传感器以检测人体手势,从而导致设备无响应。 将其切换回默认值可解决此问题。

    解决了!!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-05-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多