POSITIONAL_TRACKING_MODE Class Reference

Lists the mode of positional tracking that can be used. More...

Static Functions

def from_string (str, name)
 Converts a string to the corresponding POSITIONAL_TRACKING_MODE enum value. More...
 

Detailed Description

Lists the mode of positional tracking that can be used.

Enumerator
GEN_1 Default mode. Fast and stable mode. Requires depth computation. Less robust than GEN_3.
GEN_2 \warn DEPRECATED.
GEN_3 Fast and accurate, in both exploratory mode and mapped environments.
Note
Can be used even if depth_mode is set to DEPTH_MODE::NONE.

Functions

◆ from_string()

def from_string (   str,
  name 
)
static

Converts a string to the corresponding POSITIONAL_TRACKING_MODE enum value.

Parameters
name: The string representation of the POSITIONAL_TRACKING_MODE enum value.
Returns
The corresponding POSITIONAL_TRACKING_MODE enum value. If the string does not match any POSITIONAL_TRACKING_MODE, POSITIONAL_TRACKING_MODE.GEN_3 is returned.