Implement derived poses

Client can describe a pose to be derived from an other one, for instance
AIM can be derived from GRIP by applying an offset and rotation.
This reduces the amount of data that needs to be polled and transmitted
over the network.
This commit is contained in:
Patrick Nicolas
2025-01-31 15:35:28 +01:00
parent 8449e7eafc
commit a6c64f297d
10 changed files with 157 additions and 30 deletions
+8
View File
@@ -215,6 +215,13 @@ struct trackings
std::vector<tracking> items;
};
struct derived_pose
{
device_id source;
device_id target;
XrPosef relation;
};
struct hand_tracking
{
enum flags : uint8_t
@@ -308,6 +315,7 @@ using packets = std::variant<
handshake,
tracking,
trackings,
derived_pose,
hand_tracking,
inputs,
timesync_response,