Beispiel #1
0
    public void ReceiveSetArmPosition(NetworkMessage message)
    {
        SetArmPositionMessage m = message.ReadMessage <SetArmPositionMessage>();

        KinovaAPI.SetArmPosition(m.rightArm, m.x, m.y, m.z, m.thetaX, m.thetaY, m.thetaZ);
        hud.armPosition.text = m.x + ", " + m.y + ", " + m.z + ", " + m.thetaX + ", " + m.thetaY + ", " + m.thetaZ;
        // Debug.Log("<color=blue>Received:</color> set arm pos mess:" + m.x + ","+m.y+","+m.z);
    }
Beispiel #2
0
    // Sets a global var in ARM_32.CPP / DLL, does not send a move command yet
    public void SetArmPositions(bool rightArm, float x, float y, float z, float thetaX, float thetaY, float thetaZ)
    {
        // Debug.Log("set arm position: " + x + "," + y + "," + z + ",");
        SetArmPositionMessage m = new SetArmPositionMessage();

        m.rightArm = rightArm;
        m.x        = x;
        m.y        = y;
        m.z        = z;
        m.thetaX   = thetaX;
        m.thetaY   = thetaY;
        m.thetaZ   = thetaZ;
        myClient.Send(MyMsgTypes.MSG_SET_ARM_POSITION, m);
    }