Request tracking extrapolation on client
Add the timestamp where data was requested, use this to compute how far in the future the application is requesting samples. With this information, client requests 2 tracking samples: one at the current time and one in the future. Server now keeps track of actual samples + one predicted sample, and is most of the time in the interpolation use case.
This commit is contained in:
@@ -67,7 +67,7 @@ void pose_list::update_tracking(const from_headset::tracking & tracking, const c
|
||||
if (pose.device != device)
|
||||
continue;
|
||||
|
||||
add_sample(tracking.timestamp, convert_pose(pose), offset);
|
||||
add_sample(tracking.production_timestamp, tracking.timestamp, convert_pose(pose), offset);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user