static void Main() { // Forms boilerplate Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); // Make a real brain if needed, dummy otherwise CBrain brain; IRobot robot; if (INIT_BRAIN) { brain = new CBrain(); brain.simulatorMapFile = ""; brain.simulatorType = "MobileSim"; brain.robotHostName = ""; brain.cameraPort = ""; brain.useCamera = false; brain.useRemoteVoice = false; brain.voicePort = ""; brain.configFileName = @"C:\Users\Administrator\checkout\SubSimNL\SubSimNLDemo\BrainInterface.exe.config"; brain.Init(IntPtr.Zero, ""); robot = brain.Robot; } else { brain = null; robot = null; } // Start the subsim CSubSimProcessorLanguage nlInput = new CSubSimProcessorLanguage(brain); nlInput.standalone = true; nlInput.Init(brain, robot); nlInput.Run(); }
/// <summary> /// Create a form that uses the given natural language SubSim. /// </summary> /// <param name="nlProcessor">The SubSim to use</param> public NLInputForm(CSubSimProcessorLanguage nlProcessor) { InitializeComponent(); this.nlProcessor = nlProcessor; viewer = new TreeViewer(parseTreeControl); }