public TaskPlanner(ManipulatorManager armMan)
        {
            this.armMan = armMan;

            this.leftArm         = armMan.LeftArm;
            this.rightArm        = armMan.RightArm;
            this.mapObstacles    = armMan.MapObstacles;
            this.mapNodes        = armMan.MapNodes;
            this.leftPredefPos   = armMan.LeftPredefPos;
            this.leftPredefMovs  = armMan.LeftPredefMovs;
            this.rightPredefPos  = armMan.RightPredefPos;
            this.rightPredefMovs = armMan.RightPredefMovs;
            this.optLeftPath     = armMan.OptLeftPath;
            this.optRightPath    = armMan.OptRightPath;
            this.leftGoal        = armMan.LeftGoal;
            this.rightGoal       = armMan.RightGoal;

            this.UseRaHand = false;
            this.UseLaHand = false;
        }
예제 #2
0
        private void frmArmsControl_Load(object sender, EventArgs e)
        {
            string lastCompilation = "LastBuild: " + File.GetLastWriteTime(System.Reflection.Assembly.GetExecutingAssembly().Location).ToString("G");

            TextBoxStreamWriter.DefaultLog.WriteLine(" == ");
            TextBoxStreamWriter.DefaultLog.WriteLine(lastCompilation);
            TextBoxStreamWriter.DefaultLog.WriteLine(" == ");

            this.Text = "ARMS - " + lastCompilation;

            this.lbLeftPredefPos.SelectedIndexChanged   += new EventHandler(this.listBox_Click);
            this.lbRightPredefPos.SelectedIndexChanged  += new EventHandler(this.listBox_Click);
            this.lbRightPredefMovs.SelectedIndexChanged += new EventHandler(this.listBox_Click);
            this.lbLeftPredefMovs.SelectedIndexChanged  += new EventHandler(this.listBox_Click);

            this.armsMan                = new ManipulatorManager(this.LeftArmPortName, this.RightArmPortName);
            this.dlgStatusChanged       = new ArmControlStatusChangedEH(this.armsMan_StatusChanged);
            this.dlgFilesLoaded         = new ArmControlStatusChangedEH(this.armsMan_FilesLoaded);
            this.armsMan.StatusChanged += this.dlgStatusChanged;
            this.armsMan.FilesLoaded   += this.dlgFilesLoaded;
        }