Put not requested tracking on standby

This commit is contained in:
Patrick Nicolas
2024-09-03 23:34:23 +02:00
parent 843a83761a
commit 96bbfa1a23
17 changed files with 178 additions and 51 deletions
+3 -3
View File
@@ -60,16 +60,16 @@ xrt_space_relation pose_list::extrapolate(const xrt_space_relation & a, const xr
return res;
}
void pose_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
bool pose_list::update_tracking(const from_headset::tracking & tracking, const clock_offset & offset)
{
for (const auto & pose: tracking.device_poses)
{
if (pose.device != device)
continue;
add_sample(tracking.production_timestamp, tracking.timestamp, convert_pose(pose), offset);
return;
return add_sample(tracking.production_timestamp, tracking.timestamp, convert_pose(pose), offset);
}
return true;
}
xrt_space_relation pose_list::convert_pose(const from_headset::tracking::pose & pose)