Add an option for palm from grip

This commit is contained in:
Mylah
2025-01-29 15:48:44 -06:00
parent ba4024f324
commit 30b38bd3e9
5 changed files with 41 additions and 5 deletions
+4 -1
View File
@@ -18,6 +18,7 @@
*/
#include "pose_list.h"
#include "math/m_api.h"
#include "math/m_eigen_interop.hpp"
#include "math/m_space.h"
#include "math/m_vec3.h"
@@ -69,7 +70,9 @@ bool pose_list::update_tracking(const from_headset::tracking & tracking, const c
if (pose.device != device)
continue;
return add_sample(tracking.production_timestamp, tracking.timestamp, convert_pose(pose), offset);
xrt_space_relation new_pose = convert_pose(pose);
math_quat_rotate(&new_pose.pose.orientation, &rotation_offset, &new_pose.pose.orientation);
return add_sample(tracking.production_timestamp, tracking.timestamp, new_pose, offset);
}
return true;
}