···240240int
241241ht_device_create(struct xrt_frame_context *xfctx,
242242 struct t_stereo_camera_calibration *calib,
243243- enum t_hand_tracking_output_space output_space,
244243 enum t_hand_tracking_algorithm algorithm_choice,
245244 struct t_image_boundary_info boundary_info,
246245 struct xrt_slam_sinks **out_sinks,
···254253255254 switch (algorithm_choice) {
256255 case HT_ALGORITHM_MERCURY: {
257257- sync = t_hand_tracking_sync_mercury_create(calib, output_space, boundary_info);
256256+ sync = t_hand_tracking_sync_mercury_create(calib, boundary_info);
258257 } break;
259258 case HT_ALGORITHM_OLD_RGB: {
260259 //!@todo Either have this deal with the output space correctly, or have everything use LEFT_CAMERA
···296295 info.views[0].type = HT_IMAGE_BOUNDARY_NONE;
297296 info.views[1].type = HT_IMAGE_BOUNDARY_NONE;
298297299299- sync = t_hand_tracking_sync_mercury_create(calib, HT_OUTPUT_SPACE_LEFT_CAMERA, info);
298298+ sync = t_hand_tracking_sync_mercury_create(calib, info);
300299301300 struct ht_device *htd = ht_device_create_common(calib, true, &xfctx, sync);
302301
-2
src/xrt/drivers/ht/ht_interface.h
···4646 *
4747 * @param xfctx WMR context to attach the tracker to
4848 * @param calib Calibration struct for stereo camera
4949- * @param output_space What the origin of the output data should be
5049 * @param algorithm_choice Which algorithm to use for hand tracking
5150 * @param out_sinks Sinks to stream camera data to
5251 * @param out_device Newly created hand tracker "device"
···5554int
5655ht_device_create(struct xrt_frame_context *xfctx,
5756 struct t_stereo_camera_calibration *calib,
5858- enum t_hand_tracking_output_space output_space,
5957 enum t_hand_tracking_algorithm algorithm_choice,
6058 struct t_image_boundary_info boundary_info,
6159 struct xrt_slam_sinks **out_sinks,
···7777};
78787979/*!
8080- * @brief Output coordinate system of the hand-tracking system.
8181- *
8282- * In HT_OUTPUT_SPACE_LEFT_CAMERA, the origin is at the left camera.
8383- * In HT_OUTPUT_SPACE_CENTER_OF_STEREO_CAMERA (which you should not be using, because it assumes that your camera is a
8484- * parallel stereo camera), the origin is at the "centerline" between the two main cameras.
8585- * @ingroup xrt_iface
8686- */
8787-enum t_hand_tracking_output_space
8888-{
8989- HT_OUTPUT_SPACE_LEFT_CAMERA,
9090- HT_OUTPUT_SPACE_CENTER_OF_STEREO_CAMERA,
9191-};
9292-9393-/*!
9480 * @brief Which hand-tracking algorithm should we use?
9581 *
9682 * Never use HT_ALGORITHM_OLD_RGB. The tracking quality is extremely poor.