示例#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();
     }
 }