- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {}
/** Get the current joint angle in radians. */ public float getJointAngle () { return joint.getJointAngle(); }
@Override public void step(TestbedSettings settings) { super.step(settings); float ratio, value; ratio = m_joint4.getRatio(); value = m_joint1.getJointAngle() + ratio * m_joint2.getJointAngle(); addTextLine("theta1 + " + ratio + " * theta2 = " + value); ratio = m_joint5.getRatio(); value = m_joint2.getJointAngle() + ratio * m_joint3.getJointTranslation(); addTextLine("theta2 + " + ratio + " * delta = " + value); }
@Override public void step(TestbedSettings settings) { super.step(settings); float ratio, value; ratio = m_joint4.getRatio(); value = m_joint1.getJointAngle() + ratio * m_joint2.getJointAngle(); addTextLine("theta1 + " + ratio + " * theta2 = " + value); ratio = m_joint5.getRatio(); value = m_joint2.getJointAngle() + ratio * m_joint3.getJointTranslation(); addTextLine("theta2 + " + ratio + " * delta = " + value); }