Skip to main content
Version: 20 Mar 2024

MLSpaceLocalizationResult

Module: Magic Leap Spaces / Space

A structure containing information about the device's localization state. This structure must be initialized by calling MLSpaceLocalizationResultInit before use. More...

#include <ml_space.h>

Public Attributes

TypeName
uint32_tversion
MLSpaceLocalizationStatuslocalization_status
MLSpacespace
Space information. If localized (MLSpaceLocalizationStatus_Localized) this will contain valid Space information. If not localized this field should be ignored.
MLCoordinateFrameUIDtarget_space_origin
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.
MLSpaceLocalizationConfidencelocalization_confidence
uint32_terror

Detailed Description

struct MLSpaceLocalizationResult;

A structure containing information about the device's localization state. This structure must be initialized by calling MLSpaceLocalizationResultInit before use.

API Level:

  • 31

Public Attributes Documentation

version

uint32_t version;

Version of the structure.


localization_status

MLSpaceLocalizationStatus localization_status;
TypeDescription
MLSpaceLocalizationStatusThe current localization status.

The localization status at the time this structure was returned.


space

MLSpace space;

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

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

target_space_origin

MLCoordinateFrameUID target_space_origin;

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.


localization_confidence

MLSpaceLocalizationConfidence localization_confidence;
TypeDescription
MLSpaceLocalizationConfidenceThe confidence of the current localization.

The confidence level of this localization result.


error

uint32_t error;

Represents a bitmask of MLSpaceLocalizationErrorFlag.