Example #1
0
 private void btnRobotStatusMonitor_Click(object sender, EventArgs e)
 {
     try
     {
         if (Data.Instance.isConnected)
         {
             if (!robotstatusfrm.Visible)
             {
                 robotstatusfrm = null;
                 robotstatusfrm = new RobotStatusFrm(this);
                 //robotstatusfrm.onFormload();
                 //robotstatusfrm.onMonitoring();
                 robotstatusfrm.Show();
             }
         }
         else
         {
             MessageBox.Show("ROS server에 연결후 실행하세요");
         }
     }
     catch (Exception ex)
     {
         Console.Out.WriteLine("btnRobotStatusMonitor_Click err :={0}", ex.Message.ToString());
     }
 }
Example #2
0
        private void DashboardForm_Load(object sender, EventArgs e)
        {
#if _sol
            Data.Instance.MAINFORM = this;
#endif
            worker = new Worker(this, 1);

            dashboard_workamount_ctrl    = new Dashboard_WorkAmount_Ctrl[4];
            dashboard_workamount_ctrl[0] = new Dashboard_WorkAmount_Ctrl(this);
            dashboard_workamount_ctrl[1] = new Dashboard_WorkAmount_Ctrl(this);
            dashboard_workamount_ctrl[2] = new Dashboard_WorkAmount_Ctrl(this);
            dashboard_workamount_ctrl[3] = new Dashboard_WorkAmount_Ctrl(this);

            dashboard_robotstatus_ctrl = new Dashboard_RobotStatusCtrl(this);

            dashboard_workreport_ctrl = new Dashboard_WorkReport_Ctrl(this);

            worker.robotlivechk_Evt += new Worker.RobotLiveCheck(this.RobotLiveCheck);
            worker.workrequest_Evt  += new Worker.Work_request_FromRobot(this.Work_request_FromRobot);
            worker.exceptstatus_Evt += new Worker.ExceptStatus_FromRobot(this.ExceptStatus_FromRobot);

            workregfrm    = new WorkRegFrm(this);
            workresultfrm = new WorkResultFrm(this);
            workorderfrm  = new WorkOrderFrm(this);
            manualfrm     = new ManualFrm(this);
            mapmonitorfrm = new MapMonitor(this);


            robotstatusfrm = new RobotStatusFrm(this);



            cboDisplayScale.SelectedIndex = 0;


            m_strRobot_List_File   = "..\\Ros_info\\RobotList.txt";
            m_strRobot_Status_File = "..\\Ros_info\\RobotJobStatus.txt";


            onRobotList_Open();
            onRobots_LiveStatus_Check_Open();

            onRobotWork_StatusFile_Open();

            onRobots_WorkInfo_InitSet();

            RobotWorkstatus_Updatetimer.Interval = 500;
            RobotWorkstatus_Updatetimer.Enabled  = true;


            timer_goodsload.Interval = 250;
            timer_goodsload.Enabled  = true;

            onSolutionInitializing();

            Data.Instance.XIS_Status_Info.Clear();
        }
Example #3
0
 public XISMonitoringCtrl(Frm.RobotStatusFrm mfrm)
 {
     mainForm2 = mfrm;
     InitializeComponent();
 }