HoloNav icon indicating copy to clipboard operation
HoloNav copied to clipboard

Spatial Anchor Storage Access not working

Open celphicious opened this issue 2 years ago • 0 comments

Hi guys, thanks for sharing this interesting project. I managed to compile HoloNav with Unity 2019.4.12f1 and Visual Studio 2019 16.11 for HoloLens2. I also created Azure Table Storage and Spatial Anchors Accounts and inserted ConnectionString, Table-Names, Domain, Account-ID and Key into the corresponding exposed Parameters in TableStorage Scene in Unity. I am getting Error in the debug Console during Runtime:

"Debug messages will appear here

System.Collections.Generic.List’1[SpatialAnchor] System.Collections.Generic.List’1[Edge] No existing spatial anchor found Initialize scene. Initialize Adjacency Map"

It also pop ups a dialoge with yes/no, which tells me, there are no Anchors in the cloud, asking if I want to create one. After clicking yes and on "create Anchor" in the new Dialogue, it gives me in the debug Console:

"Initialized a new anchorPosition ‘AnchorPosition(Clone) (AnchorPosition)’ ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection."

Do I have to setup Anchor Data in Azure before running the HoloNav App? Is there some sample data for this? I wonder where ArgumentOutOfRangeException does come from, can I somehow check if the connection to Azure Spatial Anchor and Table Storage is working correctly? (before I put in the ConnectionString in Unity Project, it told me Connection String was empty)

Please help me get this up and working :) greetings from Berlin to Zurich

celphicious avatar Feb 28 '23 19:02 celphicious