Example #1
0
 public void logCurrMotion(int id)
 {
     if (movingDetect.isMoving())
     {
         Data.Motion motion = new Data.Motion();
         motion.formMotion(record, movingDetect.getStartIndex(), record.getIndex());
         motion.output("Track/track" + randomNumber + "_.txt", currMotion, id);
     }
 }
Example #2
0
 private void checkSaveMotion()
 {
     if (errorScreen.text == "ok")
     {
         if (Input.GetKeyDown(KeyCode.R))
         {
             mySkeleton.SetActive(true);
             mySkeleton.GetComponent <CaliStdMotion>().loadMotion("Cali/cali.txt");
             mySkeleton.GetComponent <CaliStdMotion>().startMotion(true);
             stdSkeletons[selectedMotionId].GetComponent <CaliStdMotion>().startMotion();
         }
         if (Utility.isRestart())
         {
             recordedMotion.output("Cali/" + fileName + "_" + randomNumber + ".txt", motions[selectedMotionId], finished[selectedMotionId]);
             finished[selectedMotionId]++;
             updateTaskScreen();
             errorScreen.text = "";
         }
     }
 }