The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

steamvr_lh: Correct jitter and pull latest timestamp on hands

authored by

BabbleBones and committed by
Jakob Bornecrantz
10d0ab7e 2218446c

+2 -4
+2 -4
src/xrt/drivers/steamvr_lh/device.cpp
··· 312 312 auto curl_values = u_hand_tracking_curl_values{pinky, ring, middle, index, thumb}; 313 313 314 314 struct xrt_space_relation hand_relation = {}; 315 - uint64_t last_ns{0}; // Not used. 316 - // Currently we only return the latest pose. 317 - m_relation_history_get_latest(relation_hist, &last_ns, &hand_relation); 315 + uint64_t ts = chrono_timestamp_ns(); 316 + m_relation_history_get_latest(relation_hist, &ts, &hand_relation); 318 317 319 318 u_hand_sim_simulate_for_valve_index_knuckles(&curl_values, get_xrt_hand(), &hand_relation, out); 320 319 ··· 620 619 math_vec3_accum(&to_world_pos, &vec); 621 620 }; 622 621 world_transform(pose.position); 623 - world_transform(relation.linear_velocity); 624 622 math_quat_rotate(&to_world_rot, &pose.orientation, &pose.orientation); 625 623 math_quat_rotate_vec3(&pose.orientation, &relation.angular_velocity, &relation.angular_velocity); 626 624