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
Type | Name |
---|---|
uint32_t | version |
MLSpaceLocalizationStatus | localization_status |
MLSpace | space Space information. If localized (MLSpaceLocalizationStatus_Localized) this will contain valid Space information. If not localized this field should be ignored. |
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. |
MLSpaceLocalizationConfidence | localization_confidence |
uint32_t | error |
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;
Type | Description |
---|---|
MLSpaceLocalizationStatus | The 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.
Type | Description |
---|---|
MLSpace | A 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;
Type | Description |
---|---|
MLSpaceLocalizationConfidence | The confidence of the current localization. |
The confidence level of this localization result.
error
uint32_t error;
Represents a bitmask of MLSpaceLocalizationErrorFlag.