/// <summary> /// The returned pose is transformed s.t. it can be directly used in Unity. /// </summary> public TargetPose GetLatestTargetPoseOf(int targetId) { TargetPose pose = m_pstTrackerDataHandler.GetLatestTargetPoseOf(targetId); pose.ToUnityCoordinateSystem(); return(pose); }
/// <summary> /// Constructor to convert to this exposed format. /// </summary> internal PstTrackerData(TrackerData td) { m_sequenceNumber = td.seqnumber; m_timestamp = td.timestamp; m_targetPoses = new TargetPose[td.targetPoses.Length]; for (int i = 0; i < td.targetPoses.Length; i++) { m_targetPoses[i] = new TargetPose(td.targetPoses[i].targetPose); } }
public void SetReferencePose(TargetPose pose) { SetReferencePose(pose.position, pose.rotation); }