예제 #1
0
 private void currentVoice_WriteNotification(SharedVariableSubscriptionReport <string> report)
 {
     if (String.IsNullOrEmpty(report.Value))
     {
         return;
     }
     commandManager.BeginCommandExecution("spg_voice", report.Value);
 }
예제 #2
0
 private void textToSpeech_WriteNotification(SharedVariableSubscriptionReport <string> report)
 {
     if (String.IsNullOrEmpty(report.Value))
     {
         return;
     }
     //commandManager.BeginCommandExecution("spg_shutup", report.Value);
     commandManager.BeginCommandExecution("spg_asay", report.Value);
 }
예제 #3
0
        void svDoubles_WriteNotification(SharedVariableSubscriptionReport <double[]> report)
        {
            string s = "0x";

            for (int i = 0; i < report.Value.Length; ++i)
            {
                s += report.Value[i].ToString() + ",";
            }
            Console.WriteLine(s);
        }
예제 #4
0
 private void sharedVarTorso_ValueChanged(SharedVariableSubscriptionReport <double[]> report)
 {
     if (taskPlanner.robot.torso.ActualizeTorsoStatus(report.Value))
     {
         TBWriter.Write(8, "Actualized Shared Var successfully torso; " + report.Variable.Name);
     }
     else
     {
         TBWriter.Write("ERROR ! Cant act5ualize Shared Var torso; " + report.Variable.Name);
     }
 }
예제 #5
0
 private void sharedVarOdometryPos_ValueChanged(SharedVariableSubscriptionReport <double[]> report)
 {
     if (taskPlanner.robot.hardwareMan.MobileBase.ActualizeOdometryPosition(report.Value))
     {
         TBWriter.Write(8, "Actualized Shared Var successfully: odometry; " + report.Variable.Name);
     }
     else
     {
         TBWriter.Write("ERROR ! Cant actualize Shared Var: odometry; " + report.Variable.Name);
     }
 }
예제 #6
0
 private void sharedVarHdPos_ValueChanged(SharedVariableSubscriptionReport <double[]> report)
 {
     if (taskPlanner.robot.head.ActualizeHeadPosition(report.Value))
     {
         TBWriter.Write(8, "Actualized Shared Var successfully: head; " + report.Variable.Name);
     }
     else
     {
         TBWriter.Write("ERROR ! Cant actualize Shared Var: head; " + report.Variable.Name);
     }
 }
예제 #7
0
 private void currentRoomSharedVar_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Current room updated to: " + report.Value);
     this.currentRoom = report.Value;
 }
예제 #8
0
 private void currentRegionSharedVar_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     this.currentRegion = report.Value;
 }
예제 #9
0
 private void cellphoneSharedVar_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Cellphone shared var updated.");
     if (!report.Equals(string.Empty))
     {
         TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Cellphone shared var enqueued.");
         this.lastRecoCellPhoneOrders.Enqueue(report.Value);
     }
 }
예제 #10
0
 private void shVariableList_WriteNotification(SharedVariableSubscriptionReport <string> report)
 {
     SubscribeToAll();
 }
예제 #11
0
 void svInteger_ValueChanged(SharedVariableSubscriptionReport <int> report)
 {
     Console.WriteLine(report.ToString());
 }
예제 #12
0
 void sensorsSharedVariable_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Home Sensors shared var updated.");
     if (!report.Equals(string.Empty))
     {
         TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Home Sensors shared var enqueued.");
         this.sensorLectures.Enqueue(report.Value);
     }
 }
예제 #13
0
 private void nearestObjForLocDirection_WriteNotification(SharedVariableSubscriptionReport<double> report)
 {
     this.cmdMan.NearObjForLocDirection = report.Value;
 }
예제 #14
0
 private void sharedVarRobotRegion_ValueChanged(SharedVariableSubscriptionReport <string> report)
 {
     taskPlanner.robot.hardwareMan.MobileBase.ActualizeRobotRegion(report.Value);
 }
예제 #15
0
 private void sharedVarSkeletons_ValueChanged(SharedVariableSubscriptionReport <string> report)
 {
     taskPlanner.robot.sensorsMan.ActualizeSkeletonsSharedVar(report.Value);
 }
예제 #16
0
 private void sharedVarConnected_ValueChanged(SharedVariableSubscriptionReport <string> report)
 {
     taskPlanner.robot.ActualizeConnectedModules(report.Value);
 }
예제 #17
0
 void svVector_ValueChanged(SharedVariableSubscriptionReport <Robotics.Mathematics.Vector> report)
 {
     Console.WriteLine(report.ToString());
 }
예제 #18
0
 void svString_WriteNotification(SharedVariableSubscriptionReport <string> report)
 {
     Console.WriteLine(report.ToString());
 }
예제 #19
0
 void fallSharedVariable_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Fall shared var updated.");
     if (!report.Equals(string.Empty))
     {
         TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Fall shared var enqueued.");
         this.lastPersonFallDetected.Enqueue(report.Value);
     }
 }
예제 #20
0
 private void svInGoorRegionForLoc_WriteNotification(SharedVariableSubscriptionReport<int> report)
 {
     this.cmdMan.InGoodRegionForLoc = report.Value;
 }
예제 #21
0
 private void gestureSharedVariable_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Received reconized gesture \"" + report.Value + "\"");
     char[] delimiters = { ' ' };
     string[] parts = report.Value.Split(delimiters, StringSplitOptions.RemoveEmptyEntries);
     this.lastRecoGestures.Enqueue(new Gesture(parts[0], parts[1]));
 }
예제 #22
0
 void svBytes_ValueChanged(SharedVariableSubscriptionReport <byte[]> report)
 {
     Console.WriteLine(report);
 }
예제 #23
0
 private void recogSpeechsSharedVar_WriteNotification(SharedVariableSubscriptionReport<Robotics.HAL.Sensors.RecognizedSpeech> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Reco speech shared var updated");
     for (int i = 0; i < report.Value.Count; i++)
         this.recognizedSentences.Enqueue(report.Value[i].Text);
 }
예제 #24
0
 void svSpeech_WriteNotification(SharedVariableSubscriptionReport <Robotics.HAL.Sensors.RecognizedSpeech> report)
 {
     Console.WriteLine("Said: " + report.Value.Text);
 }
예제 #25
0
 private void skeletonsSharedVar_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     //TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Skeletons shared var updated: " + report.Value);
     //TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Skeletons shared var updated.");
 }
예제 #26
0
 void svConnected_ValueChanged(SharedVariableSubscriptionReport <string> report)
 {
     Console.WriteLine("Connected modules:" + ((StringSharedVariable)report.Variable).BufferedData);
 }
예제 #27
0
 private void shVariableList_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     SubscribeToAll();
 }
예제 #28
0
 void svDoubles_ValueChanged(SharedVariableSubscriptionReport <double[]> report)
 {
     Console.WriteLine(report.ToString());
 }