private int getNumberOfJointStateVariables(YoProtoHandshake yoProtoHandshake) { int numberOfJointStates = 0; for (int i = 0; i < yoProtoHandshake.getJointCount(); i++) { JointDefinition joint = yoProtoHandshake.getJoint(i); numberOfJointStates += JointState.getNumberOfVariables(joint.getType()); } return numberOfJointStates; }
public static int getNumberOfVariables(byte[] handShake) { YoProtoHandshake yoProtoHandshake = parseYoProtoHandshake(handShake); int jointStateVariables = 0; for (int i = 0; i < yoProtoHandshake.getJointCount(); i++) { jointStateVariables += JointState.getNumberOfVariables(yoProtoHandshake.getJoint(i).getType()); } return 1 + yoProtoHandshake.getVariableList().size() + jointStateVariables; }
private int getNumberOfJointStateVariables(YoProtoHandshake yoProtoHandshake) { int numberOfJointStates = 0; for (int i = 0; i < yoProtoHandshake.getJointCount(); i++) { JointDefinition joint = yoProtoHandshake.getJoint(i); numberOfJointStates += JointState.getNumberOfVariables(convertJointType(joint.getType())); } return numberOfJointStates; }
private int getNumberOfJointStateVariables(Handshake handshake) { int numberOfJointStates = 0; for (int i = 0; i < handshake.getJoints().size(); i++) { JointDefinition joint = handshake.getJoints().get(i); numberOfJointStates += JointState.getNumberOfVariables(joint.getType()); } return numberOfJointStates; }
public static int getNumberOfVariables(Handshake handShake) { int jointStateVariables = 0; for (int i = 0; i < handShake.getJoints().size(); i++) { jointStateVariables += JointState.getNumberOfVariables(handShake.getJoints().get(i).getType()); } return 1 + handShake.getVariables().size() + jointStateVariables; }