Azure / azure-spatial-anchors-samples

Azure Spatial Anchors sample code
Other
293 stars 138 forks source link

How to connect Anchors across multiple sessions ? #370

Open shyam-barange opened 2 years ago

shyam-barange commented 2 years ago

Description

Trying to connect anchors across multiple sessions but not getting desired result. The newly added anchor’s pose value coming out wrong. Followed instructions given in the below link but doesn’t know how to execute the same : https://docs.microsoft.com/en-gb/azure/spatial-anchors/concepts/anchor-relationships-way-finding

Steps to reproduce the issue

  1. Create an anchor for example Anchor - A
  2. In Different session locate the anchor A
  3. Walk to new location and create another Anchor B
  4. Anchor A and B should be now connected

Expected behavior

When located from anchor B, the pose of anchor A should be the same when Created Anchor-A.

Development information

AR Device information (please complete the following information):

darax commented 2 years ago

hi @shyam-barange could you describe how the pose is wrong? IE, is it off by centimeters/close? Is it consistently in the same wrong place, or does the wrong pose place the anchor in different places, perhaps depending on where the application was started?

AaronTaube commented 1 year ago

I'm experiencing something similar. My use-case is exiting the session, reconnecting and relocating the anchor by ID and having it be in a location either slightly off with a new rotation, or sometimes supposedly locating the anchor completely behind me and no where near the original location.

Varnauld commented 1 year ago

[tracking number for this issue - 41268444]

sharramon commented 1 year ago

I'm having this exact same issue. Unity version is 2021.3.12f, ASA 2.13.0, and I'm building to the Hololens 2.

I'm just using the sample scene for Unity.

The anchor isn't stable both when I turn of program off and on again on the same HMD, and between two different HMDs during a shared session.