Skip to content

Commit d9cc099

Browse files
committed
Rename torque_command to direct_torque
The script command has been renamed in the controller.
1 parent 804e75a commit d9cc099

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

resources/external_control.urscript

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,9 @@ thread torqueThread():
272272
torque = cmd_torque
273273
{% if ROBOT_SOFTWARE_VERSION >= v5.22.0 %} # ToDo: Increase to 5.23.0 once released
274274
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
275-
torque_command(torque, friction_comp=friction_compensation_enabled)
275+
direct_torque(torque, friction_comp=friction_compensation_enabled)
276276
{% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
277-
torque_command(torque, friction_comp=friction_compensation_enabled)
277+
direct_torque(torque, friction_comp=friction_compensation_enabled)
278278
{% else %}
279279
popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
280280
{% endif %}
@@ -692,11 +692,11 @@ thread PDControlThread():
692692
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
693693
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
694694
tau = clamp_array(tau, max_joint_torques)
695-
torque_command(tau, friction_comp=friction_compensation_enabled)
695+
direct_torque(tau, friction_comp=friction_compensation_enabled)
696696
{% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
697697
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
698698
tau = clamp_array(tau, max_joint_torques)
699-
torque_command(tau, friction_comp=friction_compensation_enabled)
699+
direct_torque(tau, friction_comp=friction_compensation_enabled)
700700
{% else %}
701701
popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
702702
{% endif %}

0 commit comments

Comments
 (0)