PositionalTrackingParameters Class Reference

Parameters for positional tracking initialization. More...

Attributes

Quaternion initialWorldRotation = Quaternion.Identity
 Rotation of the camera in the world frame when the camera is started.By default, it should be identity. More...
 
Vector3 initialWorldPosition = Vector3.Zero
 Position of the camera in the world frame when the camera is started. By default, it should be zero. More...
 
bool enableAreaMemory = true
 This mode enables the camera to remember its surroundings. This helps correct positional tracking drift, and can be helpful for positioning different cameras relative to one other in space. More...
 
bool enablePoseSmothing = false
 This mode enables smooth pose correction for small drift correction. More...
 
bool setFloorAsOrigin = false
 This mode initializes the tracking to be aligned with the floor plane to better position the camera in space. More...
 
bool setAsStatic = false
 This setting allows you define the camera as static. If true, it will not move in the environment. This allows you to set its position using initial_world_transform. More...
 
bool enableIMUFusion = true
 This setting allows you to enable or disable IMU fusion. When set to false, only the optical odometry will be used. More...
 
float depthMinRange = -1f
 This setting allows you to change the minimum depth used by the SDK for Positional Tracking. More...
 
bool setGravityAsOrigin = true
 
string areaFilePath = ""
 Area localization file that describes the surroundings, saved from a previous tracking session. More...
 

Detailed Description

Parameters for positional tracking initialization.

Variables

◆ initialWorldRotation

Quaternion initialWorldRotation = Quaternion.Identity

Rotation of the camera in the world frame when the camera is started.By default, it should be identity.

◆ initialWorldPosition

Vector3 initialWorldPosition = Vector3.Zero

Position of the camera in the world frame when the camera is started. By default, it should be zero.

◆ enableAreaMemory

bool enableAreaMemory = true

This mode enables the camera to remember its surroundings. This helps correct positional tracking drift, and can be helpful for positioning different cameras relative to one other in space.

◆ enablePoseSmothing

bool enablePoseSmothing = false

This mode enables smooth pose correction for small drift correction.

◆ setFloorAsOrigin

bool setFloorAsOrigin = false

This mode initializes the tracking to be aligned with the floor plane to better position the camera in space.

◆ setAsStatic

bool setAsStatic = false

This setting allows you define the camera as static. If true, it will not move in the environment. This allows you to set its position using initial_world_transform.

◆ enableIMUFusion

bool enableIMUFusion = true

This setting allows you to enable or disable IMU fusion. When set to false, only the optical odometry will be used.

◆ depthMinRange

float depthMinRange = -1f

This setting allows you to change the minimum depth used by the SDK for Positional Tracking.

◆ setGravityAsOrigin

bool setGravityAsOrigin = true

◆ areaFilePath

string areaFilePath = ""

Area localization file that describes the surroundings, saved from a previous tracking session.