private void MainForm_Load(object sender, EventArgs e) { bridgeClient = new ROSBridgeClient(); robotDriver = new RobotDriverClient(); transitionController = new TransitionControllerClient(); frundController = new FrundControllerClient(); bridgeClient.Clients.Add(robotDriver); bridgeClient.Clients.Add(transitionController); bridgeClient.Clients.Add(frundController); WidgetsInit(); LoadDefaultUri(); jointsListView.setRobotDriverClient(ref robotDriver); powerSourcesView.setRobotDriverClient(ref robotDriver); frundControllerView.setFrundControllerClient(ref frundController); transitionController.updateTransitionFeedback += OnUpdateTransitionFeedback; timer = new System.Windows.Forms.Timer(); timer.Interval = 50; timer.Tick += Timer_Tick; timer.Start(); }
public void setFrundControllerClient(ref FrundControllerClient client) { frundController = client; }