Skip to main content
Version: 12 Dec 2024

LocalizationResult

A structure containing information about the device's localization state.

Public Attributes

ConfidenceOfLocalization

The confidence level of this localization result.


public LocalizationConfidence ConfidenceOfLocalization;

TypeDescription
LocalizationConfidenceThe confidence of the current localization.

Error

Represents a bitmask of LocalizationErrorFlag.


public LocalizationErrorFlag Error;

TypeDescription
LocalizationErrorFlagA set of possible reasons that a localization attempt may be unsuccessful.

LocalizationStatus

The localization status at the time this structure was returned.


public Status LocalizationStatus;

TypeDescription
StatusThe current localization status.

Space

Space information. If localized(#MLSpaceLocalizationStatus_Localized) this will contain valid Space information. If not localized this field should be ignored.


public Space Space;

TypeDescription
SpaceA structure containing information about a Magic Leap Space. This structure must be initialized by calling #MLSpaceInit before use.

TargetSpaceOrigin

Target space's origin relative to world origin. If localized this will contain the identifier of the transform of the target space's origin relative to the world origin. If not localized this will be null.


public NativeBindings.MLCoordinateFrameUID TargetSpaceOrigin;

TypeDescription
NativeBindings.MLCoordinateFrameUIDA unique identifier which represents a coordinate frame. The unique identifier is comprised of two values.