Parameters for positional tracking initialization. More...
General Functions | |
TrackingParameters (Transform init_pos=Transform(), bool _enable_memory=true, bool _enable_pose_smoothing=false, String _area_path=String(), bool _set_floor_as_origin=false, bool _enable_imu_fusion=true, bool _set_as_static=false) | |
Default constructor. Sets all parameters to their default and optimized values. More... | |
bool | save (String filename) |
Saves the current set of parameters into a file. More... | |
bool | load (String filename) |
Loads the values of the parameters contained in a file. More... | |
Attributes | |
Transform | initial_world_transform |
bool | enable_spatial_memory |
bool | enable_pose_smoothing |
bool | set_floor_as_origin |
String | area_file_path |
bool | enable_imu_fusion |
bool | set_as_static |
Parameters for positional tracking initialization.
A default constructor is enabled and set to its default parameters.
You can customize it to fit your application and then save it to create a preset that can be loaded for further executions.
|
inline |
Default constructor. Sets all parameters to their default and optimized values.
bool save | ( | String | filename | ) |
Saves the current set of parameters into a file.
filename | the path to the file in which the parameters will be stored. |
bool load | ( | String | filename | ) |
Loads the values of the parameters contained in a file.
filename | the path to the file from which the parameters will be loaded. |
Transform initial_world_transform |
Position of the camera in the world frame when the camera is started. By default, it should be identity.
Use this Transform to place the camera frame in the world frame.
default: Identity matrix.
bool enable_spatial_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 enable_pose_smoothing |
This mode enables smooth pose correction for small drift correction.
default: false
bool 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
String area_file_path |
Area localization file that describes the surroundings, saved from a previous tracking session.
default: (empty)
bool 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
bool 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.