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
Type | Name |
---|---|
uint32_t | version Version of the structure. |
MLSpatialAnchorLocalizationStatus | localization_status The localization status at the time this structure was returned. |
MLSpatialAnchorMappingMode | mapping_mode The current mapping mode. |
char[MLSpatialAnchor_MaxSpaceNameLength] | space_name If localized, this will contain the name of the current space. |
MLUUID | space_id If localized, this will contain the unique ID of the current space. |
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. |
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.
Type | Description |
---|---|
MLSpatialAnchorLocalizationStatus | The current localization status. |
mapping_mode
MLSpatialAnchorMappingMode mapping_mode;
The current mapping mode.
Type | Description |
---|---|
MLSpatialAnchorMappingMode | Mapping mode. |
space_name
char[MLSpatialAnchor_MaxSpaceNameLength] space_name;
If localized, this will contain the name of the current space.
Type | Description |
---|---|
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.