Skip to content

Commit dcc1b73

Browse files
Disable torque for follower arms during reset (#8)
1 parent e75c819 commit dcc1b73

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lerobot/common/robot_devices/control_utils.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,10 @@ def reset_environment(robot, events, reset_time_s):
298298
# TODO(alibets): allow for teleop during reset
299299
if has_method(robot, "teleop_safety_stop"):
300300
robot.teleop_safety_stop()
301+
302+
# Disable torque
303+
for name in robot.follower_arms:
304+
robot.follower_arms[name].write("Torque_Enable", 0)
301305

302306
timestamp = 0
303307
start_vencod_t = time.perf_counter()

0 commit comments

Comments
 (0)