Beispiel #1
0
 /// <summary>
 /// speak out a message. the message is also logged.
 /// </summary>
 /// <param name="message"></param>
 public static void Say(string message)
 {
     Log(message);
     if (CanSay && NaoState.Instance.Connected)
     {
         Proxies.GetProxy <Aldebaran.Proxies.TextToSpeechProxy>().say(message);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Unsubscribes from any sonar proxies.
        /// </summary>
        private static void UnsubscribeSonarProxies()
        {
            SonarProxy sonar = Proxies.GetProxy <SonarProxy>();

            foreach (ArrayList sub in (ArrayList)sonar.getSubscribersInfo())
            {
                sonar.unsubscribe(sub[0].ToString());
            }
        }
Beispiel #3
0
        /// <summary>
        /// Unsubscribes from any landmark-detection proxies.
        /// </summary>
        private static void UnsubscribeLandMarkProxies()
        {
            LandMarkDetectionProxy landmark = Proxies.GetProxy <LandMarkDetectionProxy>();

            foreach (ArrayList sub in (ArrayList)landmark.getSubscribersInfo())
            {
                landmark.unsubscribe(sub[0].ToString());
            }
        }
Beispiel #4
0
 ///<summary>
 /// Creates proxes to be used by this class only.
 /// </summary>
 private void CreateMyProxies()
 {
     motion  = Proxies.GetProxy <MotionProxy>();
     battery = Proxies.GetProxy <BatteryProxy>();
     memory  = Proxies.GetProxy <MemoryProxy>();
 }