d: remote redundant assigments of initial_offset

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2286>
This commit is contained in:
galister 2024-07-18 19:17:47 +09:00
parent 6f8c0d9154
commit 8359dd3b33
5 changed files with 0 additions and 9 deletions

View file

@ -196,7 +196,6 @@ euroc_device_create(struct xrt_prober *xp)
xd->tracking_origin = &ed->tracking_origin; xd->tracking_origin = &ed->tracking_origin;
xd->tracking_origin->type = XRT_TRACKING_TYPE_EXTERNAL_SLAM; xd->tracking_origin->type = XRT_TRACKING_TYPE_EXTERNAL_SLAM;
xd->tracking_origin->initial_offset.orientation.w = 1.0f;
snprintf(xd->tracking_origin->name, XRT_TRACKING_NAME_LEN, "%s %s", dev_name, "SLAM Tracker"); snprintf(xd->tracking_origin->name, XRT_TRACKING_NAME_LEN, "%s %s", dev_name, "SLAM Tracker");
if (is_hmd) { if (is_hmd) {

View file

@ -203,10 +203,6 @@ ht_device_create_common(struct t_stereo_camera_calibration *calib,
} }
htd->base.tracking_origin->type = XRT_TRACKING_TYPE_RGB; htd->base.tracking_origin->type = XRT_TRACKING_TYPE_RGB;
htd->base.tracking_origin->initial_offset.position.x = 0.0f;
htd->base.tracking_origin->initial_offset.position.y = 0.0f;
htd->base.tracking_origin->initial_offset.position.z = 0.0f;
htd->base.tracking_origin->initial_offset.orientation.w = 1.0f;
htd->base.update_inputs = u_device_noop_update_inputs; htd->base.update_inputs = u_device_noop_update_inputs;
htd->base.get_hand_tracking = ht_device_get_hand_tracking; htd->base.get_hand_tracking = ht_device_get_hand_tracking;

View file

@ -466,7 +466,6 @@ rs_ddev_create(int device_idx)
rs->base.destroy = rs_ddev_destroy; rs->base.destroy = rs_ddev_destroy;
rs->base.name = XRT_DEVICE_REALSENSE; rs->base.name = XRT_DEVICE_REALSENSE;
rs->base.tracking_origin->type = XRT_TRACKING_TYPE_EXTERNAL_SLAM; rs->base.tracking_origin->type = XRT_TRACKING_TYPE_EXTERNAL_SLAM;
rs->base.tracking_origin->initial_offset = (struct xrt_pose)XRT_POSE_IDENTITY;
// Print name. // Print name.
snprintf(rs->base.str, XRT_DEVICE_NAME_LEN, "Intel RealSense Device-SLAM"); snprintf(rs->base.str, XRT_DEVICE_NAME_LEN, "Intel RealSense Device-SLAM");

View file

@ -176,7 +176,6 @@ twrap_slam_create_device(struct xrt_frame_context *xfctx,
dx->base.destroy = twrap_slam_destroy; dx->base.destroy = twrap_slam_destroy;
dx->base.name = name; dx->base.name = name;
dx->base.tracking_origin->type = XRT_TRACKING_TYPE_OTHER; dx->base.tracking_origin->type = XRT_TRACKING_TYPE_OTHER;
dx->base.tracking_origin->initial_offset = (struct xrt_pose)XRT_POSE_IDENTITY;
dx->base.inputs[0].name = XRT_INPUT_GENERIC_TRACKER_POSE; dx->base.inputs[0].name = XRT_INPUT_GENERIC_TRACKER_POSE;
dx->base.orientation_tracking_supported = true; dx->base.orientation_tracking_supported = true;
dx->base.position_tracking_supported = true; dx->base.position_tracking_supported = true;

View file

@ -310,8 +310,6 @@ ulv5_create_device(struct xrt_device **out_xdev)
ulv5d->base.tracking_origin = &ulv5d->tracking_origin; ulv5d->base.tracking_origin = &ulv5d->tracking_origin;
ulv5d->base.tracking_origin->type = XRT_TRACKING_TYPE_OTHER; ulv5d->base.tracking_origin->type = XRT_TRACKING_TYPE_OTHER;
math_pose_identity(&ulv5d->base.tracking_origin->initial_offset);
ulv5d->log_level = debug_get_log_option_ulv5_log(); ulv5d->log_level = debug_get_log_option_ulv5_log();
ulv5d->base.update_inputs = ulv5_device_update_inputs; ulv5d->base.update_inputs = ulv5_device_update_inputs;