public YoDouble getTorqueOffsetVariable(OneDoFJointBasics oneDoFJoint) { DiagnosticsWhenHangingHelper diagnosticsWhenHangingHelper = helpers.get(oneDoFJoint); if (diagnosticsWhenHangingHelper != null) { return diagnosticsWhenHangingHelper.getTorqueOffsetVariable(); } return null; }
public DoubleYoVariable getTorqueOffsetVariable(OneDoFJoint oneDoFJoint) { DiagnosticsWhenHangingHelper diagnosticsWhenHangingHelper = helpers.get(oneDoFJoint); if (diagnosticsWhenHangingHelper != null) { return diagnosticsWhenHangingHelper.getTorqueOffsetVariable(); } return null; }
public ArrayList<DoubleYoVariable> getTorqueOffsetVariables() { ArrayList<DoubleYoVariable> torqueOffsetVariables = new ArrayList<DoubleYoVariable>(); for (int i = 0; i < oneDoFJoints.size(); i++) { DiagnosticsWhenHangingHelper diagnosticsWhenHangingHelper = helpers.get(oneDoFJoints.get(i)); if (diagnosticsWhenHangingHelper != null) { DoubleYoVariable torqueOffsetVariable = diagnosticsWhenHangingHelper.getTorqueOffsetVariable(); torqueOffsetVariables.add(torqueOffsetVariable); } } return torqueOffsetVariables; }
public ArrayList<YoDouble> getTorqueOffsetVariables() { ArrayList<YoDouble> torqueOffsetVariables = new ArrayList<>(); for (int i = 0; i < oneDoFJoints.size(); i++) { DiagnosticsWhenHangingHelper diagnosticsWhenHangingHelper = helpers.get(oneDoFJoints.get(i)); if (diagnosticsWhenHangingHelper != null) { YoDouble torqueOffsetVariable = diagnosticsWhenHangingHelper.getTorqueOffsetVariable(); torqueOffsetVariables.add(torqueOffsetVariable); } } return torqueOffsetVariables; }