Diffrentiate anchors placed in similar object/place in real world using Azure spatial anchor in Unity

João Barreto 1 Reputation point
2021-09-15T14:45:36.127+00:00

Hello there,

So right now I am using Azure Spatial Anchors in Unity to place anchors at certain objects in a certain space.
I have already used Anchor locate criteria, NearAnchor and NearDevice.
This was tested using a ZEBRA TC57HO
To replicate this you can, use coarse relocalization sample in unity. And then you have to create an anchor in a chair for example in a certain place of your home.
After creating the anchor, if you put another equal/similar chair in another room for example, if you look for anchors while pointing at the chair it will show the anchor where you have put in the first chair.

The application thinks it is the same object and puts the anchor there, but they are placed at different real-world locations.

This is also replicated using the example samples given by Microsoft

Can some one help me? I really need to detect different anchors placed at similiar objects,

Best regards,

João Barreto

Azure Spatial Anchors
Azure Spatial Anchors
An Azure service that is used to build immersive three-dimensional applications and experiences that map, persist, and restore content or points of interest at real-world scale.
87 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VipulKakkad-MSFT 1 Reputation point
    2021-09-17T20:01:34.763+00:00

    Hey Joao!

    From your description, it seems like you need to scan more of your space before creating the anchor, which will improve the results when you are querying the anchor.

    You can find more details on this concept page. You can maximize the viewing perspectives by walking around the room and driving up the value of SessionStatus.RecommendedForCreateProgress, and should capture the unique and stable features of the spaces other than those on the chair, so that ASA can recognize the difference between the spaces.
    The same concept applies to capturing more of the surroundings when finding anchors calling CloudSpatialAnchorSession.CreateWatcher.