Loclization
Details on on-cloud localization
Last updated
Details on on-cloud localization
Last updated
Auto Localize: Automatic start localization at the start of the AR session
Confidence Check: Enable this option to add a filter on localization response, higher confidence value will result in better accuracy but may reduce the number of succefull localization attempts.
Confidence Threshold: if Confidence Check if enabled them this
The LocalizeFrame method is a key part of the Map Localization Manager script in our Unity SDK. This method simplifies the process of initiating a new localization request for the current frame in your AR application. Below is a detailed explanation of how to use this public method effectively. sending a Localization request
The LocalizeFrame method is designed to trigger a localization request that attempts to determine the device’s precise position and orientation in the AR environment based on available map data.
Method Definition
The LocalizeFrame method internally calls the RequestForLocalization method, which handles the actual process of communicating with the localization service. By exposing LocalizeFrame as a public method, we enable developers to easily trigger localization at specific points in their application.
You can call LocalizeFrame in scenarios where you need to:
1. Recalibrate the device’s position after a significant change in its environment.
2. Ensure the accuracy of the device’s localization during a user interaction.
3. Handle scenarios where the localization state is lost or degraded.
To ensure accurate placement and alignment of AR objects in the localized environment, developers must place them under the MapSpace GameObject in the Unity hierarchy. Additionally, set a reference to the MapSpace GameObject in the Map Localization Manager. This is essential because the position and rotation of the MapSpace GameObject are dynamically updated during localization, allowing all child AR objects to move and rotate accordingly, maintaining their relative positions in the real world.
Localization init(): Event that is triggered when localization starts, You can use this event to trigger localization animation, loaders or any custom logic for your app.
Localization Success(): Event that is triggered when the localization response comes as a success. You can use this event to trigger localization success events in your app.
Localization Failure(): Event that triggered on failed localization event, you can call the localization event again in case of failure.
In the localization API response, you will find a confidence field indicating the accuracy of the position and rotation. Higher confidence values suggest highly accurate positioning and rotation, while lower values indicate potential errors.
Normalized confidence values range from 0 to 1. By default, we do not apply any confidence-based filters in
Developers, based on their application accuracy requirements, can apply a confidence-based filter in the localization step. For example, if you are using localization in a BIM model AR overlay application and require an accuracy of less than 5 cm, you would set a confidence-based filter of 0.8 or above. Thus, only localization responses with confidence greater than 0.8 will be