private void currentVoice_WriteNotification(SharedVariableSubscriptionReport <string> report) { if (String.IsNullOrEmpty(report.Value)) { return; } commandManager.BeginCommandExecution("spg_voice", report.Value); }
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); }
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); }
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); } }
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); } }
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); } }
private void shVariableList_WriteNotification(SharedVariableSubscriptionReport <string> report) { SubscribeToAll(); }
void svInteger_ValueChanged(SharedVariableSubscriptionReport <int> report) { Console.WriteLine(report.ToString()); }
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); } }
private void nearestObjForLocDirection_WriteNotification(SharedVariableSubscriptionReport<double> report) { this.cmdMan.NearObjForLocDirection = report.Value; }
private void sharedVarRobotRegion_ValueChanged(SharedVariableSubscriptionReport <string> report) { taskPlanner.robot.hardwareMan.MobileBase.ActualizeRobotRegion(report.Value); }
private void sharedVarSkeletons_ValueChanged(SharedVariableSubscriptionReport <string> report) { taskPlanner.robot.sensorsMan.ActualizeSkeletonsSharedVar(report.Value); }
private void sharedVarConnected_ValueChanged(SharedVariableSubscriptionReport <string> report) { taskPlanner.robot.ActualizeConnectedModules(report.Value); }
void svVector_ValueChanged(SharedVariableSubscriptionReport <Robotics.Mathematics.Vector> report) { Console.WriteLine(report.ToString()); }
void svString_WriteNotification(SharedVariableSubscriptionReport <string> report) { Console.WriteLine(report.ToString()); }
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); } }
private void svInGoorRegionForLoc_WriteNotification(SharedVariableSubscriptionReport<int> report) { this.cmdMan.InGoodRegionForLoc = report.Value; }
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])); }
void svBytes_ValueChanged(SharedVariableSubscriptionReport <byte[]> report) { Console.WriteLine(report); }
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); }
void svSpeech_WriteNotification(SharedVariableSubscriptionReport <Robotics.HAL.Sensors.RecognizedSpeech> report) { Console.WriteLine("Said: " + report.Value.Text); }
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."); }
void svConnected_ValueChanged(SharedVariableSubscriptionReport <string> report) { Console.WriteLine("Connected modules:" + ((StringSharedVariable)report.Variable).BufferedData); }
private void shVariableList_WriteNotification(SharedVariableSubscriptionReport<string> report) { SubscribeToAll(); }
void svDoubles_ValueChanged(SharedVariableSubscriptionReport <double[]> report) { Console.WriteLine(report.ToString()); }