示例#1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Number of robot arms: ");
            int num = int.Parse(Console.ReadLine());

            for (int i = 0; i < num; i++)
            {
                ArmController ac = new ArmController();
                ac.Instantiate();
                new Thread(() => { ac.Start(); }).Start();
            }
        }
示例#2
0
 public ArmManipulator(ArmController armController, ArmPresenter presenter, InverseKinematicsCalculator inverseKinematicsCalculator,
                       KinematicChain kinematicChain)
 {
     KinematicChain = kinematicChain;
     InverseKinematicsCalculator = inverseKinematicsCalculator;
     ArmController   = armController;
     Presenter       = presenter;
     CurrentPosition = new Vector3D
     {
         X = 0.061,
         Y = 0.0,
         Z = 0.1
     };
     CurrentServoPositions = new Dictionary <int, int>();
     Recording             = new List <ArmState>();
 }