private void DrRobotRobotConnection_Load(object sender, EventArgs e)
 {
     robotConfig.Clear();
     try
     {
         robotConfig.ReadXml(configFile);
     }
     catch
     {
         MessageBox.Show("Unable to open robot configure file!", "DrRobot Jaguar Control", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Close();
     }
     row               = (RobotConfig.RobotConfigTableRow)robotConfig.RobotConfigTable.Rows[0];
     txtRobotID.Text   = row.RobotID;
     txtRobotIP.Text   = row.RobotIP;
     txtGPSIP.Text     = row.GPSIP;
     txtCameraIP.Text  = row.CameraIP;
     txtCameraPWD.Text = row.CameraPWD;
     txtCameraID.Text  = row.CameraUser;
 }
        private void DrRobotRobotConnection_Load()
        {

            robotConfig.Clear();
            try
            {
                robotConfig.ReadXml(configFile);
            }
            catch
            {
                MessageBox.Show("Unable to open robot configure file!", "DrRobot Jaguar Control", MessageBoxButtons.OK, MessageBoxIcon.Error);
                Close();

            }
            row = (RobotConfig.RobotConfigTableRow)robotConfig.RobotConfigTable.Rows[0];
            txtRobotID.Text = row.RobotID;
            txtRobotIP.Text = row.RobotIP;
            txtGPSIP.Text = row.GPSIP;
            txtCameraIP.Text = row.CameraIP;
            txtCameraPWD.Text = row.CameraPWD;
            txtCameraID.Text = row.CameraUser;

        }
        public JaguarCtrl()
        {
            simulatedJaguar = new AxDDrRobotSentinel_Simulator();
            navigation = new Navigation(this);
            drRobotConnect = new DrRobotRobotConnection(this);
            drRobotConnect.connectRobot();
            robotCfg = drRobotConnect.robotConfig;
            jaguarSetting = (RobotConfig.RobotConfigTableRow)robotCfg.RobotConfigTable.Rows[0];
            InitializeComponent();

            // Setup graphics for simulation
            SetStyle(ControlStyles.OptimizedDoubleBuffer, false);
            this.Paint += new System.Windows.Forms.PaintEventHandler(this.JaguarCtrl_Paint);
            panelGE.Visible = false;
            mapResolution = trackBarZoom.Value * zoomConstant;

            // Start Simulated Sensor Update Thread
            runSensorThread = true;
            sensorThread = new Thread(runSensorLoop);
            sensorThread.Start();
        }
Example #4
0
 /////////////////////////////////////////////////////////////////
 
 #region form funtion
 public JaguarCtrl(DrRobotRobotConnection form, RobotConfig robotConfig)
 {
     drRobotConnect = form;
     robotCfg = robotConfig;
     jaguarSetting = (RobotConfig.RobotConfigTableRow)robotCfg.RobotConfigTable.Rows[0];
     InitializeComponent();
 }