private int AskForName(int currentState, object o)
 {
     foundHuman = brain.WaitForHumanOrders("Please, tell me your name in the form: robot, my name is:", 15000, true, knownPersons);
     if ((foundHuman == null || foundHuman == "") && attemptCounter < 2)
     {
         attemptCounter++;
         return(currentState);
     }
     attemptCounter = 0;
     if (rejectedNames.Contains(foundHuman))
     {
         brain.SayAsync("Sorry the name " + foundHuman + " is already in my system");
         return(currentState);
     }
     if (foundHuman == "" || foundHuman == null)
     {
         foundHuman = defaultName;
         brain.SayAsync("Sorry, I cannot understand your name. You will be " + foundHuman + " for the remainder of the test");
         Thread.Sleep(1500);
     }
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000\\FindHumanRoutine.-> Confirm \"yes\" received");
     brain.SayAsync("O.K. I am going to remember your face. Please look straight to my web camera.");
     Thread.Sleep(500);
     //if(trainShirt)
     //    return (int)States.TrainShirt;
     return((int)States.TrainFace);
 }
 private int AskForName(int currentState, object o)
 {
     //d this.cmdMan.SPG_GEN_say("Please tell your name", 10000);
     foundHuman = brain.WaitForHumanOrders("Please tell me your name", 60000, true, knownPersons);
     if (rejectedNames.Contains(foundHuman))
     {
         brain.SayAsync("Sorry the name + " + foundHuman + " is already in my system");
         return(currentState);
     }
     if (foundHuman == null)
     {
         foundHuman = defaultName;
         this.cmdMan.SPG_GEN_say("I cannot understand your name. You will be " + foundHuman + "creative, for the remainder of the test");
     }
     //rejectedNames.Add(foundHuman);
     return((int)States.AsociateName);
 }