Class MLLocalizationMap

java.lang.Object
org.lwjgl.openxr.MLLocalizationMap

public class MLLocalizationMap extends Object
The XR_ML_localization_map extension.

A Magic Leap localization map is a container that holds metadata about the scanned environment. It is a digital copy of a physical place. A localization map holds spatial anchors, dense mesh, planes, feature points, and positional data.

  • Spatial anchors - Used for persistent placement of content.
  • Dense mesh - 3D triangulated geometry representing Magic Leap device understanding of the real-world geometry of an area.
  • Planes - Large, flat surfaces derived from dense mesh data.

Localization maps can be created on device or in the Magic Leap AR Cloud. There are two types - "On Device" and "Cloud".

  • "On Device" for OpenXR (local space for MagicLeap) - are for a single device and can be shared via the export/import mechanism.
  • "Cloud" for OpenXR (shared space for MagicLeap) - can be shared across multiple MagicLeap devices in the AR Cloud.
Note

Localization Maps are called Spaces in the Magic Leap C-API.

Permissions

Android applications must have the com.magicleap.permission.SPACE_MANAGER permission listed in their manifest to use these functions:

(protection level: normal)

Android applications must have the com.magicleap.permission.SPACE_IMPORT_EXPORT permission listed in their manifest and granted to use these functions:

(protection level: dangerous)