简体   繁体   English

创建空间锚点后无法获取 Azure 空间锚点

[英]Unable to get Azure spatial anchors after creating them

I have a HoloLens project where I'm using Azure spatial anchors to sync a multiplayer environment.我有一个 HoloLens 项目,我在其中使用 Azure 空间锚点来同步多人游戏环境。 I followed the MRTK tutorials that have the lunar rover to help get me started.我按照月球车的 MRTK 教程帮助我入门。 Today I was working and my app failed to locate the anchor on other devices after the main device created one.今天我在工作,在主设备创建锚点后,我的应用程序无法在其他设备上找到锚点。

I launched the lunar rover demo I made in the tutorial that used the same Azure resource, and it too is having the same issue where other connected devices get stuck finding the anchor forever.我启动了我在教程中制作的月球车演示,它使用了相同的 Azure 资源,它也有同样的问题,即其他连接的设备永远无法找到锚点。

https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-sharing-05 https://docs.microsoft.com/en-us/windows/mixed-reality/develop/unity/tutorials/mr-learning-sharing-05

I can confirm both of the apps had working anchors before.我可以确认这两个应用程序之前都有工作锚。 What would cause this to happen?什么会导致这种情况发生? I made no code changes that should reflect this behaviour.我没有进行任何反映这种行为的代码更改。 Could the Azure service have issues? Azure 服务有问题吗? Not sure why I can successfully start a session, create an anchor, but then fail to find it.不知道为什么我可以成功启动 session,创建一个锚点,但后来找不到它。

In the MRTK demo, here is a HoloLens 1 creating and sharing the anchor.在 MRTK 演示中,这是一个创建和共享锚点的 HoloLens 1。 在此处输入图像描述

And here is a HoloLens 2 receiving the shared anchor ID, and trying to locate it.这是一个 HoloLens 2 接收共享锚 ID,并试图找到它。 It's been stuck trying to find the anchor for 5 minutes with no error or message.试图找到锚点 5 分钟,没有任何错误或消息。 在此处输入图像描述

I had exactly the same issue on my project you must upgrade your Azure Spatial Anchors SDK to the latest version or at least to 2.7.0 version.我在我的项目中遇到了完全相同的问题,您必须将 Azure 空间锚 SDK 升级到最新版本或至少升级到 2.7.0 版本。

All version bellow were discontinued since 3rd of Febuary 2021 ( https://github.com/Azure/azure-spatial-anchors-samples/releases/tag/v2.7.0 ):自 2021 年 2 月 3 日 ( https://github.com/Azure/azure-spatial-anchors-samples/releases/tag/v2.7.0 ) 起,以下所有版本均已停产:

  • This SDK 2.7.0 release contains an important change.此 SDK 2.7.0 版本包含一项重要更改。 All clients are required to upgrade to 2.7.0 SDK or later before February 3, 2021. Any client application on earlier versions of Azure Anchors SDK will not be able to connect to the ASA service starting February 3, 2021. All clients are required to upgrade to 2.7.0 SDK or later before February 3, 2021. Any client application on earlier versions of Azure Anchors SDK will not be able to connect to the ASA service starting February 3, 2021.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM