Пример #1
0
 private void rest_button_Click(object sender, RoutedEventArgs e)
 {
     rpp = new RobotPostureProxy(ipBox.Text, 9559);
     mp.stopMove();
     rpp.goToPosture("SitRelax", 1.0f);
     mp.rest();
 }
Пример #2
0
 public void setDownNao()
 {
     if (sensor != null)
     {
         this.sensor.SkeletonReady -= getPoint;
     }
     motioProxy.rest();
 }
 //interface logic after a behavior finished
 private void BehaviorFinished()
 {
     if (currentSequence.Count > 0)
     {
         RunBehaviorSequence();
     }
     else
     {
         UpdateUserInterfaceAfterBehaviorRun();
         if (RemoveStiffness)
         {
             MotionProxy.rest();
             RemoveStiffness = false;
         }
         else
         {
             RemoveStiffness = true;
         }
     }
 }