Ejemplo n.º 1
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="visionParaIn"></param>
        /// <param name="StateDescribeIn"></param>
        public VisionStateBase(VisionPara visionParaIn ,string  StateDescribeIn,ViewControl viewIn)
        {
            MyVisionPara = visionParaIn;
            myLocalManager.SetLocalModel(visionParaIn.localPara.localSetting.localModel);
            view1 = viewIn;
            myLocalrlt.TeachRow = visionParaIn.localPara.localSetting.TeachImgLocal.Row;
            myLocalrlt.TeachCol = visionParaIn.localPara.localSetting.TeachImgLocal.Col;
            myLocalrlt.angle = visionParaIn.localPara.localSetting.TeachImgLocal.Angle;

            MotionCtrl = new MotionManager();
            MotionCtrl.SetCoordi(visionParaIn.localPara.localSetting.TeachCoordi);

            //CaliPara = CaliParaManager.Instance.GetCaliValue(MyVisionPara.localPara.localSetting.TeachCoordi);
            CaliPara = CaliParaManager.Instance.GetCaliValue(MyVisionPara.localPara.localSetting.CoordiCam);
        }