示例#1
0
 /// <summary>
 /// Fires the event.
 /// </summary>
 public override void Fire()
 {
     try
     {
         executor = Grabber.Instance.PutDown();
         executor.Start();
         Pose.Instance.TakeStableArmPosition();
         ReportSuccess();
     }
     catch {
         ReportFailure();
     }
 }
示例#2
0
 /// <summary>
 /// Grabs an object in front of the Nao.
 /// </summary>
 private void GrabObject()
 {
     Logger.Log(this, "Grabbing object...");
     executor = Grabber.Instance.Grab();
     //executor.Start();
     //executor.WaitFor();
     Logger.Log(this, "Finished grabbing.");
 }
示例#3
0
 /// <summary>
 /// Positions the Nao in front of the object.
 /// </summary>
 private void GoInfrontOfObject()
 {
     Logger.Log(this, "Walking towards object...");
     executor = new ObjectSearchWorker();
     executor.Start();
     Logger.Log(this, "Finished walking towards object.");
 }