示例#1
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     //DataRow dr1 = (DataRow)comboBox1.SelectedItem;
     // string str = comboBox1.SelectedValue.ToString();
     timer1.Enabled = false;
     NowCoordi      = (CoordiEmum)Enum.Parse(typeof(CoordiEmum), comboBox1.SelectedValue.ToString(), false);
     MotionManager.Instance.SetCoordi(NowCoordi);
     timer1.Enabled = true;
 }
示例#2
0
 public CaliModelEnum GetCaliMode(CoordiEmum CoordiIn)
 {
     foreach (CaliParam item in CaliParaList)
     {
         if (item.coordi == CoordiIn)
         {
             return(item.caliModel);
         }
     }
     return(CaliModelEnum.HandEyeCali);
 }
示例#3
0
文件: MotionManager.cs 项目: Gz1d/Gz
        public void SetCoordi(CoordiEmum Coordi)
        {
            // NowCoordi = Coordi;
            switch (Coordi)
            {
            case CoordiEmum.Coordi0:
                MyMotionBase = new MotionCoordi0();
                break;

            case CoordiEmum.Coordi1:
                MyMotionBase = new MotionCoordi1();
                break;

            case CoordiEmum.Coordi2:
                MyMotionBase = new  MotionCoordi2();
                break;

            case CoordiEmum.Coordi3:
                MyMotionBase = new MotionCoordi3();
                break;

            case CoordiEmum.Coordi4:
                MyMotionBase = new MotionCoordi4();
                break;

            case CoordiEmum.Coordi5:
                MyMotionBase = new  MotionCoordi5();
                break;

            case CoordiEmum.Coordi6:
                MyMotionBase = new MotionCoordi6();
                break;

            case CoordiEmum.Coordi7:
                MyMotionBase = new MotionCoordi7();
                break;

            case CoordiEmum.Coordi8:
                MyMotionBase = new MotionCoordi8();
                break;

            case CoordiEmum.Coordi9:
                MyMotionBase = new MotionCoordi9();
                break;
            }
        }
示例#4
0
        public LocalSettingPara()
        {
            SearchAreaX  = 0;
            SearchAreaY  = 0;
            SearchWidth  = 1000;
            SearchHeight = 1000;
            localModel   = LocalModelEnum.Temp;

            GrabPosTeach  = new Point3Db();
            TeachImgLocal = new St_VectorAngle();
            TeachCoordi   = CoordiEmum.Coordi0;
            CoordiCam     = CoordiCamHandEyeMatEnum.Coordi0Cam0;

            Offset_x_range     = 1;
            Offset_y_range     = 1;
            Offset_theta_range = 1;
            Offset_x           = 0;
            Offset_y           = 0;
            Offset_theta       = 0;
            PixelSize          = 1;
        }