Error if I move the anchor before saving it

Gabri 21 Reputation points
2020-09-24T11:08:45.767+00:00

Hi,
I'm trying to create an Azure spatial anchor with Android, ARCore and Sceneform. I tried to make the transformableNode of the anchor with his translationController enabled, but if I move the anchor and then I scan the environment, at the end it gives me an error if I try to save it:

D/ASACloud: StoreAndWatcherTrackedState::TryCreateInternalAsync for a new SpatialAnchor.
D/ASACloud: StoreAndWatcherTrackedState::TryCreateWithNewNeighborhoodAnchor
D/ASACloud: [MobileNeighborhoodManager::TryGetPoseFromWorldCoordinateFrameToNeighborhoodAnchor] NeighborhoodAnchor is NOT locatable so no world coordinates are available.
D/ASACloud: [MobileNeighborhoodManager::TryGetPoseBetweenAnchors] Neighborhood Anchor B was not Locatable.
D/ASACloud: [MobileNeighborhoodManager::GetAnchorNeighborhoodDataAsync] AnchorNotLocatable as Anchor's SessionId is not current.
D/ASACloud: [MobileNeighborhoodManager::GetQueryNeighborhoodDataAsync] Anchor neighborhood data is NOT available. Feedback: 2.
D/ASACloud: TryCreateWithNewNeighborhoodAnchor was unable to get enough neighborhood data.
D/ASACloud: OnError - Not enough Neighborhood Spatial Data was available to complete the desired create or update operation
E/ASACloud: Not enough Neighborhood Spatial Data was available to complete the desired create or update operation

Here there is the full stack trace: https://pastebin.com/1Snypn7G

It doesn't happen if I try to rotate or resize the anchor (with rotation and scale controllers). What could the problem be?
Thanks

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.
88 questions
{count} votes

Accepted answer
  1. QuantumCache 20,271 Reputation points
    2020-10-06T18:51:11.67+00:00

    Hello @Gabri , Below is the suggestion from Microsoft Product team, please refer it and let us know if that helps.

    Before saving the anchor that the code check that the Anchor on the TransformableNode is valid and its TrackingState is Tracking.
    We should CloudSpatialAnchor.setLocalAnchor(AnchorNode.getAnchor()) after using the TranslationController. Unlike ScaleController and RotationController, TranslationController disposes the existing Anchor and creates a new Anchor.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.