Represents the control functions of a Neobotix robot and the visual appearance on the computer screen.
Inheritance: IRobotControl
コード例 #1
0
 public MainWindow()
 {
     InitializeComponent();
     SetDockPanelStateEnabled(false);
     RobotControl = new RobotControl();
     RobotControl.SimulationStateChanged += RobotControl_SimulationStateChanged;
     ComboBoxRobotType.Items.Add(R.Localhost);
     ComboBoxRobotType.Items.Add(R.TestRobotIP_001);
     ComboBoxRobotType.SelectedIndex = 0;
     TextBoxRobotSpeed.Text = SliderRobotSpeed.Value.ToString();
     UpdateRobotControlPanel();
 }
コード例 #2
0
ファイル: MainWindow.xaml.cs プロジェクト: war-man/CSharpSlam
 public MainWindow()
 {
     InitializeComponent();
     SetDockPanelStateEnabled(false);
     RobotControl = new RobotControl();
     RobotControl.SimulationStateChanged += RobotControl_SimulationStateChanged;
     ComboBoxRobotType.Items.Add(R.Localhost);
     ComboBoxRobotType.Items.Add(R.TestRobotIP_001);
     ComboBoxRobotType.SelectedIndex = 0;
     SliderRobotSpeed.Value          = DefaultRobotSpeed;
     TextBoxRobotSpeed.Text          = SliderRobotSpeed.Value.ToString(CultureInfo.InvariantCulture);
     UpdateRobotControlPanel();
 }