Revert feetech hack and monkeypatch instead

This commit is contained in:
Simon Alibert
2025-04-03 15:53:54 +02:00
parent 57319062aa
commit 4679725957
4 changed files with 55 additions and 69 deletions

View File

@@ -7,6 +7,7 @@ import serial
from mock_serial import MockSerial
from lerobot.common.motors.feetech import SCS_SERIES_CONTROL_TABLE, FeetechMotorsBus
from lerobot.common.motors.feetech.feetech import patch_setPacketTimeout
from .mock_serial_patch import WaitableStub
@@ -308,6 +309,9 @@ class MockPortHandler(scs.PortHandler):
return True
def setPacketTimeout(self, packet_length): # noqa: N802
return patch_setPacketTimeout(self, packet_length)
class MockMotors(MockSerial):
"""