Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to free resolved cloud anchors #87

Closed
sergeiromanov opened this issue Jul 17, 2023 · 5 comments
Closed

Unable to free resolved cloud anchors #87

sergeiromanov opened this issue Jul 17, 2023 · 5 comments

Comments

@sergeiromanov
Copy link

sergeiromanov commented Jul 17, 2023

The session fails to resolve new cloud anchors after successfully resolved 40 anchors (official limit). I keep resolved anchors GARAnchor in an array and delete them anchors[id] = nil shortly after resolving. However this delete operation seems to have no effect. It looks like the anchors are still considered active and resolveCloudAnchor throws an exception (GARSession error -6.) which means resource exhausted.
What is the correct way to release previously resolved cloud anchors?

sdk version 1.38.0

@sergeiromanov
Copy link
Author

My bad. Completely missed GARSession.remove(anchor) in the docs. All good now.

@YogeshBhattGWL
Copy link

YogeshBhattGWL commented Aug 2, 2023

Hi @sergeiromanov
I am using persistent cloud anchors but I have a problem detecting Vertical Planes like Large buildings and I want to place an object on top of the Building while scanning standing from the street using iPhone 11 with iOS 16.5.

Do you think there is any other way?

@sergeiromanov
Copy link
Author

Hi @sergeiromanov I am using persistent cloud anchors but I have a problem detecting Vertical Planes like Large buildings and I want to place an object on top of the Building while scanning standing from the street using iPhone 11 with iOS 16.5.

Do you think there is any other way?

Vertical plane detection is not going to help. The end of the plane is not going to be the end of the building. The best thing you can do is to place your content at certain height above the anchor. But I doubt the anchor location will be accurate enough to achieve what you want

@YogeshBhattGWL
Copy link

YogeshBhattGWL commented Aug 2, 2023

@sergeiromanov Do you mean that The scanning won’t work precisely for large distances like Large Buildings?

Also, I think according to my need I need to go with Geospatial Creator.
What do you think?

@sergeiromanov
Copy link
Author

@YogeshBhattGWL even for short distances ( < 3m ) the detected surface will not exactly match the physical object. Larger distances ( > 5m ) - no chance. I never used Geospatial Creator but sounds like the right tool for your use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants