Skip to main content
Version: 20 Mar 2024

MLSpatialAnchorLocalizationInfo

Module: Magic Leap Spaces / Spatial Anchor

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

#include <ml_spatial_anchor.h>

Public Attributes

TypeName
uint32_tversion
Version of the structure.
MLSpatialAnchorLocalizationStatuslocalization_status
The localization status at the time this structure was returned.
MLSpatialAnchorMappingModemapping_mode
The current mapping mode.
char[MLSpatialAnchor_MaxSpaceNameLength]space_name
If localized, this will contain the name of the current space.
MLUUIDspace_id
If localized, this will contain the unique ID of the current space.
MLCoordinateFrameUIDtarget_space_origin
If localized, this will contain the identifier of the transform of the target space's origin relative to the world origin.

Detailed Description

struct MLSpatialAnchorLocalizationInfo;

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

Deprecated

Deprecated since 1.3.0. Scheduled for removal. Replaced by MLSpaceLocalizationResult.

API Level:

  • 20

Public Attributes Documentation

version

uint32_t version;

Version of the structure.


localization_status

MLSpatialAnchorLocalizationStatus localization_status;

The localization status at the time this structure was returned.

TypeDescription
MLSpatialAnchorLocalizationStatusThe current localization status.

mapping_mode

MLSpatialAnchorMappingMode mapping_mode;

The current mapping mode.

TypeDescription
MLSpatialAnchorMappingModeMapping mode.

space_name

char[MLSpatialAnchor_MaxSpaceNameLength] space_name;

If localized, this will contain the name of the current space.

TypeDescription
char[MLSpatialAnchor_MaxSpaceNameLength][MLSpatialAnchor_MaxSpaceNameLength]

space_id

MLUUID space_id;

If localized, this will contain the unique ID of the current space.


target_space_origin

MLCoordinateFrameUID target_space_origin;

If localized, this will contain the identifier of the transform of the target space's origin relative to the world origin.