Data Fields | |
struct SL_Quaternion | initial_world_rotation |
struct SL_Vector3 | initial_world_position |
bool | enable_area_memory |
bool | enable_pose_smothing |
bool | set_floor_as_origin |
bool | set_as_static |
bool | enable_imu_fusion |
float | depth_min_range |
bool | set_gravity_as_origin |
This setting allows you to override 2 of the 3 rotations from initial_world_transform using the IMU gravity. | |
Parameters for positional tracking initialization.
struct SL_Quaternion SL_PositionalTrackingParameters::initial_world_rotation |
Rotation of the camera in the world frame when the camera is started. By default, it should be identity.
struct SL_Vector3 SL_PositionalTrackingParameters::initial_world_position |
Position of the camera in the world frame when the camera is started. By default, it should be identity.
bool SL_PositionalTrackingParameters::enable_area_memory |
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.
default: true
bool SL_PositionalTrackingParameters::enable_pose_smothing |
This mode enables smooth pose correction for small drift correction.
bool SL_PositionalTrackingParameters::set_floor_as_origin |
This mode initializes the tracking to be aligned with the floor plane to better position the camera in space.
default: false
bool SL_PositionalTrackingParameters::set_as_static |
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.
All SDK functionalities requiring positional tracking will be enabled.
Camera::getPosition() will return the value set as initial_world_transform for the PATH, and identity as the POSE.
bool SL_PositionalTrackingParameters::enable_imu_fusion |
This setting allows you to enable or disable IMU fusion. When set to false, only the optical odometry will be used.
default: true
float SL_PositionalTrackingParameters::depth_min_range |
This setting allows you to change the minimum depth used by the SDK for Positional Tracking. It may be useful for example if any steady objects are in front of the camera and may perturbate the positional tracking algorithm. default : -1 which means no minimum depth