Ejemplo n.º 1
0
 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;
             }
         }
     }
 }
Ejemplo n.º 2
0
    private void ReadInfoTable()
    {
        if (currentInfoTable != null)
        {
            switch (currentInfoTable.tag)
            {
            case "robot":
            {
                InfoControlBase infoControlBase = currentInfoTable.GetComponentInChildren <InfoControlBase>();
                q = infoControlBase.InfoState();
                break;
            }

            case "cartezian":
            {
                break;
            }
            }
        }
    }
Ejemplo n.º 3
0
    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;
            }
            }
        }
    }