|
@@ -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);
|
|
|
}
|
|
|
}
|