コード例 #1
0
 public RobotControllerForm(Block <Vector3>[] points)
 {
     InitializeComponent();
     _points                   = points;
     _contoller                = new RobotContoller(InverseKinematicsComputer.ComputeLengths(points).ToArray(), new IPEndPoint(IPAddress.Parse("192.168.250.1"), 9600));
     _contoller.Log           += ContollerOnLog;
     _contoller.ValuesUpdated += ContollerOnValuesUpdated;
     _contoller.StateUpdated  += Contoller_StateUpdated;
     UpdateRuntimeParametersLabel();
     //RenderPoints();
 }
コード例 #2
0
 public static IEnumerable <Block <Vector4> > CodeToLengths(string code) =>
 InverseKinematicsComputer.ComputeLengths(
     CoordinateComputer.ComputePoints(
         CrcParser.ParseCommands(code)
         )
     );