Use separate packet to send generic tracker poses

This commit is contained in:
Sapphire
2025-06-08 18:07:23 +02:00
committed by xytovl
parent 460fbec06d
commit 1d6b444ec6
13 changed files with 145 additions and 130 deletions
+3 -3
View File
@@ -34,11 +34,11 @@ public:
tracker_pose_list() = default;
bool update_tracking(XrTime produced_timestamp, XrTime timestamp, const from_headset::tracking::pose & pose, const clock_offset & offset);
bool update_tracking(XrTime produced_timestamp, XrTime timestamp, const from_headset::body_tracking::pose & pose, const clock_offset & offset);
std::pair<std::chrono::nanoseconds, xrt_space_relation> get_pose_at(XrTime at_timestamp_ns);
static xrt_space_relation convert_pose(const wivrn::from_headset::tracking::pose &);
static xrt_space_relation convert_pose(const wivrn::from_headset::body_tracking::pose &);
};
class wivrn_generic_tracker : public xrt_device
@@ -55,6 +55,6 @@ public:
xrt_result_t update_inputs();
xrt_result_t get_tracked_pose(xrt_input_name name, int64_t at_timestamp_ns, xrt_space_relation * out_relation);
void update_tracking(const from_headset::tracking & tracking, const from_headset::tracking::pose & pose, const clock_offset & offset);
void update_tracking(const from_headset::body_tracking & tracking, const from_headset::body_tracking::pose & pose, const clock_offset & offset);
};
} // namespace wivrn