示例#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);
     }
 }
 private void currentRoomSharedVar_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     TextBoxStreamWriter.DefaultLog.WriteLine("HAL9000.-> Current room updated to: " + report.Value);
     this.currentRoom = report.Value;
 }
 private void currentRegionSharedVar_WriteNotification(SharedVariableSubscriptionReport<string> report)
 {
     this.currentRegion = report.Value;
 }
 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());
 }