예제 #1
0
파일: Walk.cs 프로젝트: boschbc/NaoRobot
 /// <summary>
 /// Disposes of this instance.
 /// </summary>
 public void Dispose()
 {
     if (motion != null)
     {
         motion.Dispose();
     }
 }
 //dispose of all proxies connected to the Nao
 private void DisposeOfAllProxies()
 {
     if (TextToSpeechProxy != null)
     {
         TextToSpeechProxy.Dispose();
     }
     if (BehaviorManagerProxy != null)
     {
         BehaviorManagerProxy.Dispose();
     }
     if (LedsProxy != null)
     {
         LedsProxy.Dispose();
     }
     if (VideoRecorderProxy != null)
     {
         if (recording)
         {
             VideoRecorderProxy.stopRecording();
         }
         VideoRecorderProxy.Dispose();
     }
     if (MotionProxy != null)
     {
         MotionProxy.Dispose();
     }
     if (AudioProxy != null)
     {
         AudioProxy.Dispose();
     }
 }
예제 #3
0
파일: Pose.cs 프로젝트: boschbc/NaoRobot
 /// <summary>
 /// Disposes of this instance.
 /// </summary>
 public void Dispose()
 {
     if (motion != null)
     {
         motion.Dispose();
     }
     if (posture != null)
     {
         posture.Dispose();
     }
 }