Hello, I am trying the spatial anchors provided by the new SDK 2.1.1, when I call the NRWorldAnchor.SaveAnchor method, it returns false with the following errors:
Hi, Enchaaner. From the log pieces you provided, I think it may be because the feature points were not recognized well before you created the anchor. Please make sure that the glass maps the surroundings. You can try to turn around and scan the things around you slowly.
Please try to add the following method in your script to check if the Anchor can be saved before the pose is well recognized by the glass.
thank you for the answer.
I have tried several times, even after looking around for 2/3 minutes so as to properly map the room, but the error persists.
Do you have any other suggestions?
There is a small error in my first post, my problem is not during saving, but during creation. If you notice from the stack, the exception is generated by the “NRWorldAnchorStore:CreateAnchor” method.
I haven’t tried saving an anchor yet, since it gives me an error as soon as I try to create it.
Thank you for providing the details. From the error message, it’s not immediately clear what the issue might be. To help us diagnose the problem, could you please provide more detailed logs?
Device and Glasses Model:
Could you let us know the specific model of your device and the Xreal glasses you are using?
Enable Detailed Logging:
Please enable detailed logging by creating a file named sdk_global.json in the files directory with the following content:
{
"sdk": {
"log_level": "0"
}
}
This will help us get more comprehensive logs to analyze the issue.
Once you have the detailed logs, please share them with us, and we’ll investigate further.