You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: resources/external_control.urscript
+38-39Lines changed: 38 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -275,6 +275,41 @@ thread speedThread():
275
275
stopj(STOPJ_ACCELERATION)
276
276
end
277
277
278
+
# Helper function to call the direct torque control function depending on the software version
279
+
def directTorqueControlCall(tau):
280
+
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
281
+
{% if ROBOT_SOFTWARE_VERSION >= v5.23.0 %}
282
+
if friction_compensation_mode == FRICTION_COMP_MODE_FRICTION_SCALES:
283
+
{% if ROBOT_SOFTWARE_VERSION < v5.25.1 %}
284
+
popup("Friction scales (viscous_scale/coulomb_scale) are supported from PolyScope 5.25.1. This robot runs an older version.", error=True, blocking=True)
popup("Torque control is only supported from software 5.23.0 and upwards.", error=True, blocking=True)
295
+
{% endif %}
296
+
{% elif ROBOT_SOFTWARE_VERSION >= v10.11.0 %}
297
+
if friction_compensation_mode == FRICTION_COMP_MODE_FRICTION_SCALES:
298
+
{% if ROBOT_SOFTWARE_VERSION < v10.12.1 %}
299
+
popup("Friction scales (viscous_scale/coulomb_scale) are supported from PolyScope X 10.12.1. This robot runs an older version.", error=True, blocking=True)
if friction_compensation_mode == FRICTION_COMP_MODE_FRICTION_SCALES:
291
-
{% if ROBOT_SOFTWARE_VERSION < v5.25.1 %}
292
-
popup("Friction scales (viscous_scale/coulomb_scale) are supported from PolyScope 5.25.1. This robot runs an older version.", error=True, blocking=True)
popup("Torque control is only supported from software 5.23.0 and upwards.", error=True, blocking=True)
303
-
{% endif %}
304
-
{% elif ROBOT_SOFTWARE_VERSION >= v10.11.0 %}
305
-
if friction_compensation_mode == FRICTION_COMP_MODE_FRICTION_SCALES:
306
-
{% if ROBOT_SOFTWARE_VERSION < v10.12.1 %}
307
-
popup("Friction scales (viscous_scale/coulomb_scale) are supported from PolyScope X 10.12.1. This robot runs an older version.", error=True, blocking=True)
0 commit comments