Hololens 感知模拟样本测试崩溃设备
Hololens Perception Simulation sample test crashes device
感知模拟的示例代码使我的设备崩溃。该设备确实响应语音命令,但没有对手势的响应,也没有视觉效果。我每次都得用WDR重置
Link 到文档
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();
}
}
经过一周的故障排除,我注意到控制模式切换到模拟,暂停所有传感器来检测人体手势,这使得设备无响应。
将其切换回默认值可解决此问题。
已解决!!
感知模拟的示例代码使我的设备崩溃。该设备确实响应语音命令,但没有对手势的响应,也没有视觉效果。我每次都得用WDR重置
Link 到文档 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();
}
}
经过一周的故障排除,我注意到控制模式切换到模拟,暂停所有传感器来检测人体手势,这使得设备无响应。 将其切换回默认值可解决此问题。
已解决!!