private void UpdateState() { if (currentInfoTable != null) { InfoControlBase infoControlBase = currentInfoTable.GetComponentInChildren <InfoControlBase>(); if (infoControlBase.ControlMode) { state = State.MoveInfoTable; } else { if (state == State.MoveInfoTable) { state = State.NoMoving; } } } }
private void ReadInfoTable() { if (currentInfoTable != null) { switch (currentInfoTable.tag) { case "robot": { InfoControlBase infoControlBase = currentInfoTable.GetComponentInChildren <InfoControlBase>(); q = infoControlBase.InfoState(); break; } case "cartezian": { break; } } } }
private void SendInfoTable() { if (currentInfoTable != null) { switch (currentInfoTable.tag) { case "robot": { InfoControlBase infoControlBase = currentInfoTable.GetComponentInChildren <InfoControlBase>(); infoControlBase.ReadRobotState(current_q); break; } case "cartezian": { InfoControlBase infoControlBase = currentInfoTable.GetComponentInChildren <InfoControlBase>(); float[] mas = ReadStateEE(); infoControlBase.ReadCartezianState(mas); break; } } } }