Browse Source

Update BodyComparer.cs

Kenkart 2 years ago
parent
commit
aa4f8c1625
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Assets/Scripts/BodyComparer.cs

+ 6 - 0
Assets/Scripts/BodyComparer.cs

@@ -26,7 +26,10 @@ public class BodyComparer : MonoBehaviour
     public IEnumerator StartCompare()
     {
         if (bsv.body == null)
+        {
+            yield return new WaitForSeconds(3);
             yield break;
+        }
 
         for (int i = 0; i < jointsDataDemo.Count; i++)
         {
@@ -59,6 +62,8 @@ public class BodyComparer : MonoBehaviour
                     // TODO: Haptic feedback
                     //SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.LeftHand].Execute(0, 0.01f, 10, 1);
                     //SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.RightHand].Execute(0, 0.01f, 10, 1);
+                    //SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.LeftFoot].Execute(0, 0.01f, 10, 1);
+                    //SteamVR_Actions.default_Haptic[SteamVR_Input_Sources.RightFoot].Execute(0, 0.01f, 10, 1);
                 }
                 else
                 {
@@ -96,6 +101,7 @@ public class BodyComparer : MonoBehaviour
 
     public void WriteCSV()
     {
+        Debug.Log("Save to CSV");
         CSVWriter.WriteCSV(posJointsDemos, posJointsBodys, csvTimes);
     }
 }