Пример кода для моделирования восприятия приводит к сбою моего устройства. Устройство реагирует на голосовые команды, но не реагирует ни на жесты, ни на визуальные эффекты. Мне нужно использовать 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();
}
}