Example #1
0
        public override void Setup()
        {
            Eye = new Camera(0);
            Eye.Start();

            Arm = new ThreeDOFArm("COM3", 115200);
            Arm.Connect();

            Brain = new Cognitive();
        }
Example #2
0
        public override void Setup()
        {
            LeftArmCommandList   = new Queue <BaseCommand>();
            LeftArmCurrentStatus = Status.Idle;

            RightArmCommandList   = new Queue <BaseCommand>();
            RightArmCurrentStatus = Status.Idle;

            Brain = new CloudBrain(new Uri("http://10.125.169.141:8182"), new BasicAuthenticationCredentials());

            RightArmId = 4396;
            LeftArmId  = 43967;// Brain.Arm.Register().Value;

            LeftArm = new ThreeDOFArm("COM4", 115200);
            LeftArm.Subscript("CallBack", HandleLeftArmCallback);
            LeftArm.Connect();

            RightArm = new ThreeDOFArm("COM4", 115200);
            RightArm.Subscript("CallBack", HandleRightArmCallback);
            RightArm.Connect();
        }
Example #3
0
        public override void Setup()
        {
            CommandList   = new Queue <BaseCommand>();
            CurrentStatus = Status.Idle;

            Brain = new CloudBrain(new Uri("http://10.125.169.141:8182"), new BasicAuthenticationCredentials());
            ArmId = 4396;// Brain.Arm.Register().Value;

            Eye = new Camera(0);

            Arm = new ThreeDOFArm("COM4", 115200);
            Arm.Subscript("CallBack", HandleArmCallback);
            Arm.Connect();

            storageAccount = CloudStorageAccount.Parse("SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS");
            blobClient     = storageAccount.CreateCloudBlobClient();
            container      = blobClient.GetContainerReference($"{Math.Abs(ArmId)}-image");
            container.CreateIfNotExists();

            //CommandList.Enqueue(new VisionCommand());
        }