File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
src/main/java/com/neuronrobotics/sdk/addons/kinematics Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change @@ -1553,6 +1553,25 @@ public double getMinEngineeringUnits(int linkIndex) {
15531553
15541554 return getAbstractLink (linkIndex ).getMinEngineeringUnits ();
15551555 }
1556+
1557+ /**
1558+ * Sets the max engineering units.
1559+ *
1560+ * @param maxLimit the max engineering units
1561+ */
1562+ public void setMaxEngineeringUnits (int linkIndex , double maxLimit ) {
1563+ getAbstractLink (linkIndex ).setMaxEngineeringUnits (maxLimit );
1564+ }
1565+
1566+ /**
1567+ * Sets the min engineering units.
1568+ *
1569+ * @param minLimit the min engineering units
1570+ */
1571+ public void setMinEngineeringUnits (int linkIndex , double minLimit ) {
1572+
1573+ getAbstractLink (linkIndex ).setMinEngineeringUnits (minLimit );
1574+ }
15561575 public String getElectroMechanicalType (int linkIndex ) {
15571576 return getLinkConfiguration (linkIndex ).getElectroMechanicalType () ;
15581577 }
Original file line number Diff line number Diff line change @@ -348,6 +348,30 @@ public double getMinEngineeringUnits() {
348348 return toEngineeringUnits (getUpperLimit ());
349349 }
350350
351+ /**
352+ * Sets the upper limit.
353+ *
354+ * @param upperLimit the new upper limit
355+ */
356+ public void setMinEngineeringUnits (double minLimit ) {
357+ if (conf .getScale ()>0 )
358+ conf .setLowerLimit ( toLinkUnits (minLimit ));
359+ else
360+ conf .setUpperLimit ( toLinkUnits (minLimit ));
361+ }
362+
363+ /**
364+ * Sets the lower limit.
365+ *
366+ * @param lowerLimit the new lower limit
367+ */
368+ public void setMaxEngineeringUnits (double maxLimit ) {
369+ if (conf .getScale ()>0 )
370+ conf .setUpperLimit ( toLinkUnits (maxLimit ));
371+ else
372+ conf .setLowerLimit ( toLinkUnits (maxLimit ));
373+ }
374+
351375
352376 /**
353377 * Gets the max engineering units.
You can’t perform that action at this time.
0 commit comments