@@ -272,9 +272,9 @@ thread torqueThread():
272
272
torque = cmd_torque
273
273
{% if ROBOT_SOFTWARE_VERSION >= v5.22.0 %} # ToDo: Increase to 5.23.0 once released
274
274
{% 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)
276
276
{% 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)
278
278
{% else %}
279
279
popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
280
280
{% endif %}
@@ -692,11 +692,11 @@ thread PDControlThread():
692
692
{% if ROBOT_SOFTWARE_VERSION < v6.0.0 %}
693
693
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
694
694
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)
696
696
{% elif ROBOT_SOFTWARE_VERSION >= v10.10.0 %}
697
697
local tau = pd_controller_gains.kp * q_err - pd_controller_gains.kd * get_actual_joint_speeds()
698
698
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)
700
700
{% else %}
701
701
popup("Torque control is only supported from software 10.10.0 and upwards.", error=True, blocking=True)
702
702
{% endif %}
0 commit comments