Example #1
0
 public Kernel(Blackboard blk)
 {
     this.blackboard        = blk;
     this.procMan           = new ModuleProcessManager((Robotics.Utilities.LogWriter)blackboard.Log);
     this.commands          = new Dictionary <string, StringEventHandler>();
     this.tracers           = new Dictionary <string, SharedVariableWrittenEventHandler>();
     this.rxCommandSplitter = new Regex(@"^(?<cmd>\w+)(\s+(?<par>.*))?$");
     RegisterCommands();
     RegisterSystemPrototypes();
 }
Example #2
0
 public Kernel(Blackboard blk)
 {
     this.blackboard = blk;
     this.procMan = new ModuleProcessManager((Robotics.Utilities.LogWriter)blackboard.Log);
     this.commands = new Dictionary<string, StringEventHandler>();
     this.tracers = new Dictionary<string, SharedVariableWrittenEventHandler>();
     this.rxCommandSplitter = new Regex(@"^(?<cmd>\w+)(\s+(?<par>.*))?$");
     RegisterCommands();
     RegisterSystemPrototypes();
 }
		private void SetupBlackboard()
		{
			SetupLogfile();
			tbsw = new XmlTextBoxStreamWriter(txtOutputLog, bbLogFile, 1024);
			tbsw.AppendDate = true;
			log = new LogWriter(tbsw);
			processManager = new ModuleProcessManager(log);
			txtOutputLog.Clear();
			lvwRedirectionHistory.Items.Clear();
			txtOutputLog.AppendText("Loading Blackboard\r\n");
			blackboard = Blackboard.FromXML(ConfigFile, log);
			blackboard.VerbosityLevel = 1;
			//blackboard = Blackboard.FromXML("bb.xml");
			LoadPlugins();
			interactionTool.Blackboard = blackboard;
			SetupBlackboardModules();
			SetupBlackboardEvents();
			//tcLog.Enabled = true;
			BlackboardControlsEnabled = true;
			txtOutputLog.AppendText("Blackboard loaded\r\n");
			
			if(chkAutostart.Checked)
			Start();
		}