|
Monado OpenXR Runtime
|
A hand tracker that owns device/source selection policy. More...
#include <xrt/xrt_hand_tracker.h>
Static Public Member Functions | |
| static xrt_result_t | xrt_hand_tracker_locate (struct xrt_hand_tracker *xht, struct xrt_space_overseer *xso, struct xrt_space *base_space, const struct xrt_pose *base_offset, int64_t at_timestamp_ns, struct xrt_hand_tracker_location *out_location) |
| Locate hand joints in the supplied base space. | |
| static XRT_NONNULL_ALL xrt_result_t | xrt_hand_tracker_set_output (struct xrt_hand_tracker *xht, enum xrt_output_name name, const struct xrt_output_value *value) |
| Apply output to the selected backing source device(s). | |
| static XRT_NONNULL_ALL void | xrt_hand_tracker_destroy (struct xrt_hand_tracker **xht_ptr) |
| Destroy an xrt_hand_tracker - helper function. | |
Data Fields | |
| xrt_result_t(* | locate )(struct xrt_hand_tracker *xht, struct xrt_space_overseer *xso, struct xrt_space *base_space, const struct xrt_pose *base_offset, int64_t at_timestamp_ns, struct xrt_hand_tracker_location *out_location) |
| Locate hand joints in the supplied base space. | |
| xrt_result_t(* | set_output )(struct xrt_hand_tracker *xht, enum xrt_output_name name, const struct xrt_output_value *value) |
| Apply output to the selected backing source device(s). | |
| void(* | destroy )(struct xrt_hand_tracker *xht) |
| Destroy this hand tracker. | |
A hand tracker that owns device/source selection policy.
|
inlinestatic |
Destroy an xrt_hand_tracker - helper function.
| [in,out] | xht_ptr | A pointer to the xrt_hand_tracker struct pointer. |
Will destroy the tracker if *xht_ptr is not NULL. Will then set *xht_ptr to NULL.
References destroy.
Referenced by ipc_server_objects_destroy_xht().
|
inlinestatic |
Locate hand joints in the supplied base space.
| xht | Pointer to self. |
| xso | Space overseer used to resolve device spaces. |
| base_space | Space to locate joints in. |
| base_offset | Offset from base_space. |
base_offset argument can be removed if this offset is folded into the OpenXR XrSpace, but we do not want to change that behavior just yet.| at_timestamp_ns | Time to locate at. |
| out_location | Resulting hand-tracking location. |
References locate.
|
inlinestatic |
Apply output to the selected backing source device(s).
References set_output.
| void(* xrt_hand_tracker::destroy) (struct xrt_hand_tracker *xht) |
Destroy this hand tracker.
Code consuming this interface should use xrt_hand_tracker_destroy.
Referenced by xrt_hand_tracker_destroy().
| xrt_result_t(* xrt_hand_tracker::locate) (struct xrt_hand_tracker *xht, struct xrt_space_overseer *xso, struct xrt_space *base_space, const struct xrt_pose *base_offset, int64_t at_timestamp_ns, struct xrt_hand_tracker_location *out_location) |
Locate hand joints in the supplied base space.
| xht | Pointer to self. |
| xso | Space overseer used to resolve device spaces. |
| base_space | Space to locate joints in. |
| base_offset | Offset from base_space. |
base_offset argument can be removed if this offset is folded into the OpenXR XrSpace, but we do not want to change that behavior just yet.| at_timestamp_ns | Time to locate at. |
| out_location | Resulting hand-tracking location. |
Referenced by xrt_hand_tracker_locate().
| xrt_result_t(* xrt_hand_tracker::set_output) (struct xrt_hand_tracker *xht, enum xrt_output_name name, const struct xrt_output_value *value) |
Apply output to the selected backing source device(s).
Referenced by xrt_hand_tracker_set_output().